quote:
Originally posted by .Roy
quote:
Originally posted by Adeptus
#include <stdio.h>
#include <windows.h>
int main(void)
{
printf("lol\n");
Sleep(2000);
printf("Why isnt this working?!");
}
Thanks LOADS! !
Edit: And when i used turbo c ++ there was a command called gotoxy() where moves your pointer to the following coordinates, like gotoxy(5,30).
I believe the command for gotoxy(x,y) using windows.h is SetCursorPosition(int left, int top). I haven't ever used Dev-C++ - my school were nice enough to give me an old copy of VS6 until .NET 2005 express came out - so this command may not work.
Just make sure you do #include <windows.h> first
PS. Just checked, I don't think that command works in C. Use the following:
code:
#include <conio.h>
#include <stdio.h>
int main (void)
{
gotoxy(10,10);
printf("Starts on location 10,10.\n");
return 0;
}