What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C help! Please

C help! Please
Author: Message:
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
RE: RE: C help! Please
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;
}

[Image: AndrewsStyle.png]
09-08-2006 08:16 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
C help! Please - by .Roy on 09-08-2006 at 10:46 AM
RE: C help! Please - by Stigmata on 09-08-2006 at 11:09 AM
RE: C help! Please - by Eljay on 09-08-2006 at 11:13 AM
RE: C help! Please - by .Roy on 09-08-2006 at 11:31 AM
RE: C help! Please - by RaceProUK on 09-08-2006 at 12:00 PM
RE: C help! Please - by .Roy on 09-08-2006 at 12:09 PM
RE: C help! Please - by Plik on 09-08-2006 at 12:48 PM
RE: C help! Please - by .Roy on 09-08-2006 at 01:01 PM
RE: C help! Please - by Adeptus on 09-08-2006 at 01:20 PM
RE: C help! Please - by .Roy on 09-08-2006 at 01:55 PM
RE: RE: C help! Please - by andrewdodd13 on 09-08-2006 at 08:16 PM
RE: C help! Please - by absorbation on 09-08-2006 at 02:54 PM
RE: C help! Please - by Adeptus on 09-08-2006 at 03:17 PM
RE: C help! Please - by RaceProUK on 09-08-2006 at 03:41 PM
RE: C help! Please - by absorbation on 09-08-2006 at 03:44 PM
RE: RE: C help! Please - by segosa on 09-08-2006 at 08:07 PM
RE: C help! Please - by Adeptus on 09-08-2006 at 03:57 PM
RE: C help! Please - by .Roy on 09-08-2006 at 04:36 PM
RE: C help! Please - by .Roy on 09-08-2006 at 09:48 PM
RE: C help! Please - by ShawnZ on 09-08-2006 at 10:02 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On