Pulling together all the
code fragments from the previous section, the whole program looks like
this:
void ShowTime ()
{
ShowText ( "The
System Time is:" );
int
iTime = GetUTCTime ();
// integer values
will be converted
// to strings
automatically
string
sHour = GetUTCHour ( iTime );
string
sMinute = GetUTCMinute ( iTime );
ShowText ( sHour +
":" + sMinute );
}
void
ShowTimeThreeTimes ()
{
ShowTime ();
ShowTime ();
ShowTime ();
}
void Scene1 ()
{
ShowTimeThreeTimes ();
}
This program contains
three function definitions: ShowTime, ShowTimeThreeTimes and Scene1.
Inside the definition of
Scene1, there is a statement that uses or calls ShowTimeThreeTimes.
Similarly, ShowTimeThreeTimes calls ShowTime three times. Notice that
the definition of each function appears above the place where it is
used.
This is necessary in C++;
the definition of a function must appear before (above) the first use
of the function. You could try running this program with the functions
in a different order and see what error messages you get.
Alan Sturgess shared an excellent video he made using Tales Animator! You can still download Tales Animator here. Unfortunately it is only available for Wi
There is a prototype of simple online character designer available
HERE. It is only a prototype,
it does not contain many pieces yet but it can already generat
Web Cartoon Maker 1.5 is finally here! You can download it
HERE!
Here is what was updated in version 1.5:
Web Cartoon Maker Desktop Edition is now fully standal