previous up next contents
Previous: A. Some computing tools Up: A. Some computing tools Next: A.2 Reading data files   Contents

A.1 The main program

The main program LISTING 1 of the scilab sheet planx.sce declares a lot of variables as global ones, and then displays a menu of possible actions (cf FIG. A.1).

A function who wants to write into a global variable must declare it as global. Otherwise, the function can only read this variable (and afterwards, the function is only acting upon a local copy).


\begin{algorithm}
% latex2html id marker 1373
[H]
\begin{algorithmic}[1]
\par
\D...
...u}
\par
\end{algorithmic}
\par
\caption{The main program
}
\par
\end{algorithm}

FIG. A.1: Main menu and second level menus
Image menu_main Image menu_read Image menu_deal


\begin{algorithm}
% latex2html id marker 1393
[H]
\begin{algorithmic}[1]
\par
\D...
...ILE
\par
\end{algorithmic}
\par
\caption{The main menu
}
\par
\end{algorithm}


previous up next contents
Previous: A. Some computing tools Up: A. Some computing tools Next: A.2 Reading data files   Contents


douillet@ensait.fr
2008-03-13