Page 1 of 1

[HugoBook] Chap.IV exercises

Posted: Mon Jul 19, 2004 8:55 am
by Hugella
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:

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!"
}
(Note addition of main routine.)

Noted

Posted: Mon Jul 26, 2004 11:50 pm
by Kent
Thanks (again)--I'll fix this as soon as I get a chance.