TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: FRANK MASINGILL
from: KURT KUZBA
date: 1997-09-10 01:26:00
subject: Stuck on one line

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.