i need a litle help
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!!!
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).
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!!!
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!!!
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");?
why use cout >> ("Hello World"); or whatever
when you can use printf("Hello world");?
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!!!
and is " cout<<"hello World" "
============
if god is love...
and the love is blind...
so Ray Charles is god!!!
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
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
- Pouya / FOO!!!
#define PURE_STUPIDITY 128 PROGRAMMERS
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement