What does the below mean???
thanksCode:#include <stdlib.h> #include <stdio.h> #include <conio.h> #include <ctype.h> int main() { textcolor(2); gotoxy(40,5); cprintf ("The Matrix"); gotoxy(40,6); printf ("By: Jripe"); delay(5000); return 0; }
What does the below mean???
thanksCode:#include <stdlib.h> #include <stdio.h> #include <conio.h> #include <ctype.h> int main() { textcolor(2); gotoxy(40,5); cprintf ("The Matrix"); gotoxy(40,6); printf ("By: Jripe"); delay(5000); return 0; }
Last edited by scaryroker; 02-02-2003 at 01:46 AM.
> What does the below mean???
Nothing to me.
It's a fancy hello world.
The world is waiting. I must leave you now.
i think my friend wanted to make the words fly and come togther!
Is this how u do it? If not how?
Last edited by scaryroker; 02-02-2003 at 02:06 AM.
> my friend wanted to make the words fly and come togther!
Define this bit in detail.
The world is waiting. I must leave you now.
>textcolor(2);
Use color 2 for text.
>gotoxy(40,5);
Put cursor at that coordinates on the screen.
>cprintf ("The Matrix");
Not sure, but a printf which is aware of the color to be used?
>gotoxy(40,6);
Put cursor at that coordinates on the screen.
>printf ("By: Jripe");
Print that text, not taking in account the color to be used.
> delay(5000);
Wait for 5 seconds.
> return 0;
And then quit.
Just like shiro said, a little bit about cprintf():
Like printf (see section printf), but prints through the console, taking into consideration window borders and text attributes. There is currently a 2048-byte limit on the size of each individual cprintf call.