<<<<<< TIME POSE SUBROUTINE >>>>>>>>>
If they want to quit, do so
<<<<< TERMINAL SCREEN DRAWING SUBROUTINE >>>>>>>>
TERMINAL
$V1$
<<<<<< 4 BOTTOM LINES CLEANING SUBROUTINE >>>>>>
If they want to quit, do so
<<<<<< REVIEW CLEANING SUBROUTINE >>>>>>
If they want to quit, do so
<<<<<< CLEAN THE INSIDE OF BOUNDED ARE ONLY >>>>>
Assume that there are three separate functions:
main(){
--------
--------
--------
--------
--------
}
funct_1()
{
:--;
:---;
}
funct_2()
{
---;
}
The main function/program calls the function func_1() ...
funct_1();
When main() calls funct_1(), the control is passed to funct_1():
|
|
^
|
|
^
|
-
>
-
-
-
>
funct_1(), after finishing its execution ...
executes return() ...
return(...);
and the program control returns to main()!
|
|
v
|
-
<
-
-
-
<
The main() then calls funct_2() ...
funct_2();
and the program controls passes to funct_2.
-
-
>
-
-
>
|
|
V
Finally, the function funct_2() executes return(..);
return(..);
and the program control returns again to the main()!
-
-
<
|
-
<
-
-
-
<