Results 1 to 10 of 10
  1. #1
    voodooflame's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Help and Releases
    Posts
    251
    Reputation
    10
    Thanks
    87
    My Mood
    Yeehaw

    [TuT] First Program in C++

    Firstly, Get a Compiler, this is what takes the code and makes it into a program. There are a lot of compilers of there but I suggest VC++ 2010. The download can be found in the Crossfire source code section here!

    This first program you will write is simple: Helloworld!
    Open a new console application project in VC++ and go to: Add New Item > and add a (.cpp) file called main.cpp!

    Once you are ready type this code down to write your first program:

    [IMG]https://i747.photobucke*****m/albums/xx116/ddragon97/1.jpg[/IMG]

    Code:
    #include <iostream>
    
    int main()
    {
    	std::cout << "Hello World!" << std::endl;
    	return 0;
    }
    Now to explain the coding:

    BLUE = CODE
    BLACK = EXPLANATION

    Code:
    #include <iostream> (Including the standard iostream file into your program)
    Code:
    int main()
    
    int: is an integer number value. 
    main(): defines that the main function is about to be stated
    Code:
    {
    	std::cout << "Hello World!" << std::endl;
    	return 0;
    }
    { = start of code
    } = end of code
    std = standard
    cout = console output
    endl = endline
    "TEXT" = When used with "cout" it is displayed on the computer screen
    << = These arrows show what will be placed on the screen (ie. std::cout << "Hello World!" This shows that "Hello World! will be displayed on the console window)
    return 0; = Think of this as ending the main function and returning back to the program with no results (no exactly but close enough)
    
    Therefore the Code:
    std::cout << "Hello World!" << std::endl;
    
    In English can be written as:
    standard::console output << "Hello World!" << standard:: endline;
    When executed the program looks like this:
    [IMG]https://i747.photobucke*****m/albums/xx116/ddragon97/2.jpg[/IMG]

    Well what you just learned to do is code, although coding hacks arent that simple, everything is more complicated but everything basically revolves around this have fun coding

    NOTE: I KNOW THERE ARE LOTS OF C++ TUTS HERE BUT THIS ONE TEACHES YOU HOW TO CODE THE MOST BASIC PROGRAM BUT STILL TEACHES YOU THE BASIC COMPONENTS THAT MOST C++ PROGRAMS HAVE!




    ~!My Releases!~
    Graffiti-Like Login Mod
    Naruto Login Mod
    VFCxInjector V1.0
    VFCxInjector V2.0
    VFCxInjector V3.0

    Do you have the guts to click this...?

    To Do List:
    Use a SpeedHack & GunHack & Aimbot for Crossfire
    100 Posts

    500 Posts
    Make my Own Mod
    Learn C++
    [PAUSED]
    Code my Own hack
    Code my Own Injector

    [IMG]https://i774.photobucke*****m/albums/yy22/batuzai43/dontforget.gif[/IMG]

  2. The Following User Says Thank You to voodooflame For This Useful Post:

    carlosj95 (08-24-2010)

  3. #2
    steph777's Avatar
    Join Date
    Aug 2010
    Gender
    female
    Location
    Melbourne, Australia
    Posts
    377
    Reputation
    8
    Thanks
    165
    My Mood
    Amused
    C+P fail.
    This was posted and stickied(I think) before.

  4. #3
    voodooflame's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Help and Releases
    Posts
    251
    Reputation
    10
    Thanks
    87
    My Mood
    Yeehaw
    I spent an hour typing this tut up so dont say i C+P it....
    I took the pics i wrote the code all from my computer -.-"
    gawd people recieve no credit for their work these days....
    Last edited by voodooflame; 08-24-2010 at 07:00 AM.




    ~!My Releases!~
    Graffiti-Like Login Mod
    Naruto Login Mod
    VFCxInjector V1.0
    VFCxInjector V2.0
    VFCxInjector V3.0

    Do you have the guts to click this...?

    To Do List:
    Use a SpeedHack & GunHack & Aimbot for Crossfire
    100 Posts

    500 Posts
    Make my Own Mod
    Learn C++
    [PAUSED]
    Code my Own hack
    Code my Own Injector

    [IMG]https://i774.photobucke*****m/albums/yy22/batuzai43/dontforget.gif[/IMG]

  5. #4
    ss4naruto2's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    In a urban area
    Posts
    654
    Reputation
    11
    Thanks
    37
    Man... I havnt done this in a while.

  6. #5
    voodooflame's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Help and Releases
    Posts
    251
    Reputation
    10
    Thanks
    87
    My Mood
    Yeehaw
    Basically I made this tut for choobs who whine about not having any hacks and they want people to code it for them... this is so they know its not that easy :P Actually it is pretty easy but it takes time.... and patience is what choobs dont have
    But yea... old coders can refresh themselves with this too




    ~!My Releases!~
    Graffiti-Like Login Mod
    Naruto Login Mod
    VFCxInjector V1.0
    VFCxInjector V2.0
    VFCxInjector V3.0

    Do you have the guts to click this...?

    To Do List:
    Use a SpeedHack & GunHack & Aimbot for Crossfire
    100 Posts

    500 Posts
    Make my Own Mod
    Learn C++
    [PAUSED]
    Code my Own hack
    Code my Own Injector

    [IMG]https://i774.photobucke*****m/albums/yy22/batuzai43/dontforget.gif[/IMG]

  7. #6
    superleggera01's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    5
    My Mood
    Twisted
    fail...nuff said/

  8. #7
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    Please post it here next time ^^
    C++/C - MPGH - MultiPlayer Game Hacking

  9. #8
    genufuk's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    in my house i think
    Posts
    21
    Reputation
    10
    Thanks
    12
    My Mood
    Aggressive
    can i use borland C++???


    #include<stdio.h>
    void main(void)
    {
    int a;
    printf("Hello World");
    scanf("%d",&a);

    }

    plz check .....
    Last edited by genufuk; 08-24-2010 at 12:59 PM.

  10. #9
    spice_weasel's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    nice program!

  11. #10
    voodooflame's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Help and Releases
    Posts
    251
    Reputation
    10
    Thanks
    87
    My Mood
    Yeehaw
    Quote Originally Posted by hahaz View Post
    Please post it here next time ^^
    C++/C - MPGH - MultiPlayer Game Hacking
    Ill make sure i do that next time... xD
    im always in the cf section :P

    Quote Originally Posted by genufuk View Post
    can i use borland C++???


    #include<stdio.h>
    void main(void)
    {
    int a;
    printf("Hello World");
    scanf("%d",&a);

    }

    plz check .....
    K imma try it when i get the time....
    cuz im busy right now

    Quote Originally Posted by superleggera01 View Post
    fail...nuff said/
    Gawd i already said that this is for the noobs -_-
    Last edited by voodooflame; 08-25-2010 at 03:06 AM.




    ~!My Releases!~
    Graffiti-Like Login Mod
    Naruto Login Mod
    VFCxInjector V1.0
    VFCxInjector V2.0
    VFCxInjector V3.0

    Do you have the guts to click this...?

    To Do List:
    Use a SpeedHack & GunHack & Aimbot for Crossfire
    100 Posts

    500 Posts
    Make my Own Mod
    Learn C++
    [PAUSED]
    Code my Own hack
    Code my Own Injector

    [IMG]https://i774.photobucke*****m/albums/yy22/batuzai43/dontforget.gif[/IMG]

Similar Threads

  1. Whats the first program you made?
    By jpnfl77 in forum Coders Lounge
    Replies: 63
    Last Post: 11-16-2010, 10:34 AM
  2. Replies: 13
    Last Post: 12-28-2009, 01:13 AM
  3. My first program coded on Vb[Spammer]
    By PoP_KiLLaH in forum Visual Basic Programming
    Replies: 12
    Last Post: 11-23-2009, 09:29 AM
  4. My first program :D
    By No5cope in forum Visual Basic Programming
    Replies: 2
    Last Post: 08-25-2009, 04:23 PM
  5. [Tutorial] Your first program
    By akimoko in forum C++/C Programming
    Replies: 10
    Last Post: 06-23-2007, 12:58 PM