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
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
you could simply write using namespace std instead of all the using std::cout and stuff and don't schools teach programming nowadays?
// 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...
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.