1. This forum is in read-only mode.

The RomU C Tutorial.

Discussion in 'Computers & Modding' started by fgghjjkll, May 10, 2009.

Thread Status:
Not open for further replies.
  1. Cahos Rahne Veloza

    Cahos Rahne Veloza The Fart Awakens

    I'm not really sure if this should go here, but what the heck.
     
  2. fgghjjkll

    fgghjjkll Well-Known Member

    k.
    doin this in a hurry...
    youll learnin bout gets.[get string]

    k
    Code:
    #include <stdio.h>
    
    int main()
    {
    char abc[20];
    puts("type anything");
    gets(abc);
    printf("%s",abc);
    return(0);
    }
    
    ill type what this is about later.
    cos im not bothered right now.
     
  3. diskjocki

    diskjocki Well-Known Member

    You.Are.Very.Lazy.
     
  4. nomercy

    nomercy Well-Known Member

    Look up on how classes are implemented in C++. You'll find something with structs and a this pointer.

    Starting with C++ when you don't know how to use classes or use C is just asking for errors everywhere.

    C++ is not necessarily slower. It's still C, with classes. If you don't put your code in a class, then it can be just as fast as C.

    Go Whitespace!
     
  5. Loonylion

    Loonylion Administrator Staff Member

    since this isn't shaping up to be a usable tutorial that actually teaches properly, locked.
     
Thread Status:
Not open for further replies.