Help!!!!

This is a discussion on Help!!!! within the C Programming forums, part of the General Programming Boards category; What does the below mean??? Code: #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <ctype.h> int main() { textcolor(2); gotoxy(40,5); cprintf ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    2

    Exclamation Help!!!!

    What does the below mean???

    Code:
    #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;
    }
    thanks
    Last edited by scaryroker; 02-02-2003 at 12:46 AM.

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > What does the below mean???
    Nothing to me.

    It's a fancy hello world.
    The world is waiting. I must leave you now.

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    2
    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 01:06 AM.

  4. #4
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > 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.

  5. #5
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >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.

  6. #6
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    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.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21