i need a litle help

Started by
5 comments, last by The Alchemist 23 years, 9 months ago
well i´m doing text based RPG batle(like the one from darkmage). and i remember that in begining of my C classes i used to use a function that clears the screen, but i forget his name and i don´t find it in any book that i have here with me ( even msdn) so anyone here know somenthing about it??? Thanks! ============ if god is love... and the love is blind... so Ray Charles is god!!!
"Everything works out in the end, if it doesn't then it is not the end"
Advertisement
Now did I get this right, you wan''t to know a function that clears the screen? It''s my english again. Well if this is the point there are atleast two choises : printf("\f"); or clrscr(); (conio.h).
------------------------------If there be no heaven,may there atleast be a hell.-------------------------------Afterlife-
clrscr()!!!! how i could forget such a thing??
thanks!!!!

by the way, you can use the "/f" flag with cout too,right???

============
if god is love...
and the love is blind...
so Ray Charles is god!!!
"Everything works out in the end, if it doesn't then it is not the end"
Don''t know c++ sorry, and I hate those couts and cins too
why use cout >> ("Hello World"); or whatever
when you can use printf("Hello world");?
------------------------------If there be no heaven,may there atleast be a hell.-------------------------------Afterlife-
belive me cout if far more easy...

and is " cout<<"hello World" "

============
if god is love...
and the love is blind...
so Ray Charles is god!!!
"Everything works out in the end, if it doesn't then it is not the end"
And you can just do something like

cout << "This is the current value " << iValue << "which is an integer. Next we have a float" << fValue;
instead of
printf("This is the current value %d which is an integer. Next we have a float %f", iValue, fValue);

like it or not, when things start to get long, cout at least keeps things ordered. And you don''t have to define output types
well, when you''re doing it under windows, cout is useless

- Pouya / FOO!!!

#define PURE_STUPIDITY 128 PROGRAMMERS

This topic is closed to new replies.

Advertisement