[HugoBook] Chap.IV exercises
Posted: Mon Jul 19, 2004 8:55 am
In the 'What Should I Be Able To Do Now?' section (IV.i), the first exercise, 'Mixing Text Styles', will not run as printed. The full code should be:
(Note addition of main routine.)
Code: Select all
#include "hugolib.h"
routine main
{
PrintingSample
return
}
routine PrintingSample
{
print "Text may be printed in \Bboldface\b, \Iitalics\i, \Uunderline\u, or
\Pproportional\p typefaces."
color RED
print "\nGet ready. ";
color YELLOW
print "\nGet set. ";
color GREEN
print "\nGo!"
}