FM> cprintf("Frank is a humanoid who is ");
FM> gotoxy(10,7);
FM>
FM> //************************************************************
FM> //THIS NEXT LINE - HOW DO I GET COLOR IN ENTIRE LINE?
FM> //************************************************************
FM>
FM> cout << Frank.GetAge() << " years old.\n";
FM> gotoxy(10,8);
FM> cprintf("and he goes around all the time saying things like " );
FM> gotoxy(10,9);
FM> //************************************************************
FM> //AND IN THIS ONE BELOW
FM> //************************************************************
FM> Frank.Philosopher();
FM> return 0;
FM> }
You have to either get rid of the cout entirely, and learn to
use console streams, with which I have no experience, or use
cprintf more creatively. I see that Frank.Philosopher is now
automatically directing its own output. If you use a console
stream, that will be fine. If you rewrite it to use cprintf()
you will need to change it to return a pointer to a string.
cprintf("Frank is a humanoid who is %d years old.\nAnd he goes"
"around all the time saying things like,\n%s.",
Frank.GetAge(), Frank.Philosopher());
---
> ] A man has got to know his limits. [ Harry Callahan ] ......
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)
|