Thanks alot! I'm gonna try that out and send it to my friend.
Thanks alot! I'm gonna try that out and send it to my friend.
to make my own header file(to put it in the include place) how do i do that(to make my own clear screen function)? And if i put the
etc..., do I still have to put the std:: in front of all the couts and cins?Code:using std::cout;
i tried making my own clear function:
how do i put the cursor in the top left corner?Code:int clear() { cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; }
just type using namespace std; right below your headers and you will no longer have to use std::cout
and you can use system("cls"); on xp - iv tried it lol
uOriginally Posted by ay_okay
if you want to control the position of the cursor on the screen with that much detail you might want to use something like the *nix curse library (no idea of the windows equivalent) to do your output.
Clearing the screen, moving the cursor about and a whole load more console stuff is included in my 6 part console tutorial starting here.
I suspect the reason it is not working as it is, is because you have compiled it with a 16 bit DOS compiler and are trying to run it as a 32 bit executable. You could try to recompile it on his XP system, or run it in a DOS emulating shell.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.