amazing tutorial for beginners!

SlimRecoveries Sep 4, 2013

  1. SlimRecoveries

    SlimRecoveries Newbie
    55/94

    Joined:
    Sep 1, 2013
    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    0
    Console:
    Xbox
    go here, i have been using it for about an hour, i can do this already

    http://www.doc.ic.ac.uk/~af909/Beginning_C++_Game_Programming%5B1%5D.pdf

    #include <iostream>
    #include <string>

    using std::cout;
    using std::cin;
    using std::endl;
    using std::string;

    int main()
    {
    const int GOLD_PIECES = 900;
    int adventurers, killed, survivors;
    string leader;

    cout << "welcome to the lost Fortune...\n\n";
    cout << "please enter the following for your personalised adventure\n";

    cout << "enter a number: ";
    cin >> adventurers;

    cout << "enter a number, smaller than the first: ";
    cin >> killed;

    survivors = adventurers - killed;

    cout << "enter your last name: ";
    cin >> leader;

    cout << "\nA brave group of " << adventurers << " went on a quest ";
    cout << "in search of the lost treasure of the stupid sneaky dwarfs.";
    cout << "the group was lead by the legendary, ONE AND ONNLYYYY... " << leader;

    cout << "\nalong the way, a horde of jimmy saviles raped everyone ";
    cout << "all ran and cryed ";
    cout << "under the command of the CatFlap " << leader;
    cout << "they got away, but at a cost. ";

    cout << "\nduring the great savile invasion of 09, "<< killed << "were taken to the jimmycave..." ;
    cout << "leaving just" << survivors << "with their **** virginity... ";

    cout << "\nthey almost gave up when suddenly... ";
    cout << leader << "sat down and got a very wierd sensation in his ****, like ";
    cout << "there was something up his ****, he pulled it out and he screamed ";
    cout << "we got it! he had found what he was looknig for, the golden *****... ";

    cout << "\nthey sailed home, while << leader << rode the ***** in the ale room ";


    cout << "\n the END... or is it... ";

    cout << "stay tuned for part two of " <<leader <<"'s anazing journey for the ";
    cout << "lost condoms... ";

    return 0;
    }

    i know for experienced coders that isnt much, but for us beginners its an amazing accomplishment lol :)
     
  2. losparo

    losparo Moderator Staff Member XPG Moderator TeamXPG
    380/564

    Joined:
    Dec 16, 2012
    Messages:
    2,060
    Likes Received:
    7,236
    Trophy Points:
    380
    Gender:
    Male
    Console:
    Playstation 4
    think you left out the link ...cheers
     
  3. SlimRecoveries

    SlimRecoveries Newbie
    0/47

    Joined:
    Sep 1, 2013
    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    0
    Console:
    Xbox
    haha oh yeh i always do that... i will add it now
     
  4. SlimRecoveries

    SlimRecoveries Newbie
    0/47

    Joined:
    Sep 1, 2013
    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    0
    Console:
    Xbox
    updated with link, its an online PDF, about 400 pages, not a one day thing, will take you weeks to learn all of it lol
     
  5. au

    auris331 Newbie
    0/47

    Joined:
    Feb 19, 2013
    Messages:
    50
    Likes Received:
    2
    Trophy Points:
    0
    Console:
    Other
    you could simply write using namespace std instead of all the using std::cout and stuff ;)
    and don't schools teach programming nowadays?
     
  6. Ve

    Vektyr Newbie
    0/47

    Joined:
    Nov 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Console:
    Xbox
    // Yes you can use
    using namespace std;

    // doing them separately is good practice though
    // http://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice

    using namespace std::cin;
    using namespace std::endl;
    using namespace std::cout;
    Yes, schools teach you how to teach yourself programming. So really finding material online is just as good as going to school...
     
  7. au

    auris331 Newbie
    0/47

    Joined:
    Feb 19, 2013
    Messages:
    50
    Likes Received:
    2
    Trophy Points:
    0
    Console:
    Other
    well my school has taught me pretty well. į plan to go to university after school
     
  8. fo

    fob Newbie
    0/47

    Joined:
    Sep 26, 2014
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    0
    Looks like a good tut! wish i had some of these resources when i started to learn
     
  9. Traviance

    Traviance Disabled Not Dead Lifetime Gold
    55/94

    Joined:
    Dec 19, 2012
    Messages:
    150
    Likes Received:
    77
    Trophy Points:
    55
    Gender:
    Male
    Location:
    Leicester, UK
    Console:
    Xbox One
    has anyone got a copy of this or a new active link for this - current link states it can not find it..

    would be really interested in this. please.
     

Share This Page

Close