Thread: Beginning C++

Page 1 of 4 123 ... LastLast
Results 1 to 15 of 57
  1. #1
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad

    Beginning C++

    Learn C++
    Beginner's Quick Start Guide


    Index:
    1. Introduction
    2. Why Learn C++?
    3. What you'll need
    4. About the forum
    5. What's next?


    Introduction:
    Do you want to learn C++, but have no idea where to start, well this guide is for you. If you also are simply looking for beginner level guides, tutorials, books, etc. this guide might be able to help you as well. It is my hope that by the end of this guide any newcomers will have a good idea of what to learn and how to get started.



    Why Learn C++?
    As many of you probably already know, this is a gamehacking forum, so you are most likely here to learn how to create gamehacks. Well in that case it is well known that most gamehacks are coded in C++. It should come as no surprise to you that one of the best languages to code gamehacks is the very same language used to program the games you want to hack. (surprise... surprise) If you don't understand what programming is or what a programming language is then consult the FAQ. If at anytime you don't understand a concept there will most likely be a FAQ to help you. If not just post a question and one of the more experienced members should help you out.

    What you'll need:

    About the Forum:
    Before you go posting you should know that this is a learning and development forum. This forum is meant as a launch pad to give people with no experience gamehacking the appropriate knowledge to be a successful gamehacker. It is NOT meant to help copy&pasters fix or tinker with pre-built hacks of which they might have no understanding of how they work. WarRock hacks are especially bad because the same source code is simply reused over and over again. This forum is here so that newcomers to the world of gamehacking can learn how to construct and build their own hacks from scratch. It will be very difficult to do this if your using a crutch such as prebuilt code. Many people are just tempted to just jump ahead and build a hack and skip all the intermediate stuff which will leave huge gaps in their knowledge, and those who skip will always end up depending on others' code because they won't have the knowledge to construct their own code.
    What this forum is meant to do is help new gamehackers learn and develop the appropriate knowledge to begin gamehacking and then hone these skills. If you really have a desire to learn the art of gamehacking then you will find this forum a great resource to help you grow and develop.



    What's Next?

    Once you learn all the basic concepts of C++(classes, pointers, virtual function, etc.) it's time to move on to some cool stuff. But make sure you learn the basics first. If you skip over this it's going to come back and bite you in the... well just trust me you NEED to know the basics first. Once you have completed the basics you can move on to DirectX, and some basic Windows API. There is more information here in the Intermediate Concepts of Game Hacking.


    I and other GMODs & Moderators & Minions will append to this list at later time.
    Last edited by why06; 10-17-2009 at 11:47 AM. Reason: Updated with more information...



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  2. The Following 181 Users Say Thank You to radnomguywfq3 For This Useful Post:

    'Bruno (12-21-2009),-Hash- (09-17-2016),00darkline00 (10-22-2009),123321 (12-19-2009),3rw1n (06-12-2016),absynthe420 (01-29-2010),AC130 (12-05-2009),Adrenaline (01-10-2016),adukinater (07-10-2010),Aeroxns (11-20-2015),aerrow107 (06-15-2010),Ahmad' (08-29-2010),al3xman (04-10-2010),Alex (03-19-2010),anmolrulz (04-07-2009),App13J4CK (08-16-2012),badkdr (11-22-2009),basble (08-16-2010),bayley60 (07-03-2010),Brute69 (03-22-2012),btakers (02-14-2010),Cakesmuggler.png (08-31-2015),cakrie (04-21-2010),Calard (11-18-2009),Cameronol (04-08-2010),Capinmole (01-05-2018),carlosduarte (06-24-2010),Casavir (07-30-2009),chargersfan1234 (05-08-2011),CheapAudio (12-10-2009),Chemixx (07-12-2010),chilla0508 (04-08-2010),chrisisafoo (05-03-2009),clonious (02-18-2010),compaq soul (08-03-2010),conndrst (09-01-2010),Crack_Killz (10-04-2009),Craeven (03-07-2010),crazygamer53 (10-14-2009),crushed (10-05-2009),cwjkiki (01-10-2010),CyClore (07-16-2010),DarkDoug (03-08-2012),darkness24713 (10-11-2011),dathat (02-02-2010),Davidng_55-66 (09-28-2010),Daxx (02-10-2010),ddgghh123 (07-02-2010),Dontscr3am (12-03-2012),dr92 (03-02-2011),Drake (05-29-2010),Drew (12-21-2011),dsadsa1234 (04-22-2010),Elocrypt. (10-01-2014),empty130400 (09-09-2010),enjoto (08-28-2010),errorlog2 (03-06-2010),Euphemistic (11-16-2015),familotel (12-26-2015),figate321 (07-16-2010),Gab (08-26-2010),GBot! (11-17-2010),geebes888 (10-17-2009),[MPGH]Ghost (03-09-2011),hackzerz (02-08-2011),Hell'sBack (05-04-2010),hellomynameisbob (12-06-2009),Hell_Demon (10-13-2009),hooch (02-15-2011),hopefordope (02-15-2010),hugh_who (07-01-2010),iamfrost (11-19-2014),iFentanyl (11-28-2018),iKingKiller (06-21-2010),Inject0rzz (05-07-2011),IPlayNo (10-01-2010),jake2222 (09-02-2010),JaloNik (06-15-2010),jippedson (07-14-2010),jokerskull123 (01-18-2010),JonathanTBM (01-01-2012),junny2233 (12-01-2009),Kev1015Skyfall (05-30-2015),khcastro (06-12-2010),kid23 (08-04-2010),kittens4life (01-14-2013),koshinator (07-02-2014),ladathion (07-25-2010),lamba99 (02-12-2010),Last Angel (03-29-2010),Lauri (01-06-2012),lolicatgirl (03-14-2009),lordofme50 (02-10-2010),LuckyBullet (03-15-2010),Luke6.5 (11-25-2009),malskey (11-12-2016),mark0108 (07-12-2010),Marsicano (10-18-2009),micfortier (05-15-2010),mightyman (09-14-2010),Mike (06-06-2011),mikey1181 (05-01-2010),Mookamoka (02-04-2011),muted101 (05-02-2010),mynameisnt (03-20-2009),n0lishplz (09-12-2010),nauman159 (08-02-2016),NEAXIC (02-17-2018),nuclord (03-10-2010),odoacer (05-05-2011),osiel (07-31-2009),Oxing (12-04-2014),Paul (05-13-2011),Pefra (08-26-2019),Pignoy (04-15-2019),Polo™ (06-08-2010),powelln93 (08-17-2010),Programmer111 (08-11-2016),proman98 (05-18-2011),quevreauxx (07-03-2011),ragesamuel (10-29-2011),rapid x (03-19-2009),reaper (05-15-2010),RecoveryOne (04-09-2009),red5678 (07-05-2010),rjcmax (10-27-2011),Roczombie (07-12-2010),sakthis7 (12-09-2009),sawm444 (09-22-2009),schakkka (06-11-2010),SeanBoBoEgan (02-23-2011),Seen63 (05-05-2010),seko12go (07-03-2010),sexysmexy (07-01-2011),SgtMiclan (04-12-2009),shadow10223 (08-01-2010),Sheppe (12-31-2011),skizz720 (10-07-2009),skradz (07-06-2009),Sky_____ (03-22-2015),Soonerkid (04-20-2010),SorrySniper (09-02-2010),surjendra (09-07-2010),Suuuuuuuuuuuuuuuuuuuuuuuu (01-31-2012),swoongyul (02-02-2010),Taco (07-03-2010),tdcoolboy (02-14-2010),TDice (01-25-2014),thekm1994 (06-10-2010),theyuri (06-07-2010),tidge789 (02-05-2010),tomyssj3 (06-03-2009),Tony Stark` (06-16-2010),Truly Free (06-17-2010),trutik (11-14-2012),uknown1 (08-08-2010),Vaskec (11-07-2018),veulix (07-15-2011),VOSSWATER (01-05-2017),WannaB3Hacker (06-22-2010),WhiteSnipe (01-23-2010),whitten (09-24-2009),why06 (02-23-2010),Wicked. (12-03-2009),wordswing (07-13-2010),XpeinX (06-05-2010),xxxPROFINITYxxx (08-19-2010),zaku (07-03-2010),Zakua_Demon (10-02-2011),zildjiandw (03-20-2009),ZKPB (06-04-2010),zomb1 (02-24-2010),Zweldouz (09-04-2015),zyixc2 (05-28-2010),zysilveria (03-17-2010),[after] (07-06-2010),[F]ace! (08-12-2010),[GER]Black_Ops (01-03-2016),[HE]Περσεύς[RO] (09-08-2010),[Respected] Mikey (05-11-2010),_.LooooL._ (09-19-2010)

  3. #2
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired

    [TUT] Download C++ tut here. Amazing!

    This is an amazing C++ guide, that claims to teach it to you in 21 days. (It doesnt, It has 21 lessons, and it requires alot of time)

    I use dev C++ for it, and its great.

    If any questions about basic dev programming feel free to ask.

    Sticky this please?

    Screenshot:

    Thanks if I helped you!

  4. The Following 79 Users Say Thank You to Lolland For This Useful Post:

    (G)rapefruit (08-09-2009),7897 (11-06-2013),AppLett (03-26-2009),askmeagain32 (07-27-2009),bkxianga0 (04-15-2015),Blister7070 (04-24-2015),bob90 (02-17-2010),BruisedParasite (10-26-2014),compaq soul (08-03-2010),Crackerscrack2 (09-01-2009),d00ms33k3r (08-12-2009),darkness24713 (10-06-2011),DeathCrawls (01-03-2013),dennyjsant (11-21-2015),DoctorCoops (08-17-2013),Ex3cutioner (05-30-2016),familotel (12-26-2015),fantasyfga89 (01-08-2015),Fayker (07-23-2012),Froomz (06-18-2016),fxed123 (07-21-2013),GameGalaxyBros (12-23-2014),ghostdrum (06-26-2012),Gloxt (02-12-2013),God601 (03-03-2010),guru2008 (09-30-2009),hax.exe (11-15-2013),hihiman1 (07-18-2009),HurrLeDurr (06-05-2013),I-JlStepper-I (06-07-2010),iamfrost (11-19-2014),iKingKiller (06-21-2010),Infinite2 (06-17-2016),intrix22 (05-30-2014),joelx2000 (10-29-2014),JonathanTBM (01-01-2012),jorge (10-02-2009),Kaxeze (01-23-2015),kid23 (08-04-2010),KIDCON26 (01-24-2013),killer-c (07-30-2009),Kittystyle (03-05-2015),kkatuwal (12-27-2012),koolazngy94 (05-11-2009),kranus (11-08-2009),lager (04-21-2014),lamba99 (02-12-2010),Last Angel (03-29-2010),leang_97 (06-13-2011),leevi1995 (07-19-2010),leoen2 (01-21-2015),lordbryanz (11-30-2012),lxlpwntlxl (03-22-2009),pindakaas01 (12-05-2014),powelln93 (08-17-2010),raveal96 (06-08-2010),robertkor (01-07-2014),roswots99 (02-02-2013),simmo5159 (04-09-2013),siva_1989 (05-09-2012),SPittn_Blood (11-11-2009),TDice (01-25-2014),technicolor9 (06-27-2013),timebomb99 (12-16-2009),TrickyTip (12-08-2012),tvman13 (08-28-2012),UDI012 (01-02-2014),UnLoGiiCaL (05-14-2013),UxGotxShot (07-31-2009),Valdar99 (05-01-2012),veulix (07-15-2011),Vexsinity (02-05-2015),willprince92 (05-23-2013),wintzert (07-24-2010),xeeku (12-23-2015),yanaungmin (12-05-2015),Zakua_Demon (10-02-2011),[HE]Περσεύς[RO] (09-08-2010),`Frost (06-27-2014)

  5. #3
    GG2GG's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    United Kingdom
    Posts
    3,382
    Reputation
    21
    Thanks
    4,294,967,295
    My Mood
    Blah
    its avaible online in many places, so no need to download, and josh i saw your question on irc, the best thing to use is visual studio 2008 pro, people only say 6 is better as they prefer it because they have used it longer, if you havent got an opinion vs08 pro is the one to use.

  6. The Following 3 Users Say Thank You to GG2GG For This Useful Post:

    clonious (02-18-2010),JaloNik (06-15-2010),Ricky1337 (09-05-2009)

  7. #4
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Dude I posted a tutorial. Read it. lol

  8. The Following 3 Users Say Thank You to Lolland For This Useful Post:

    21sean21 (06-03-2010),Jimmy (08-15-2009),[HE]Περσεύς[RO] (09-08-2010)

  9. #5
    Sharpe's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Dont worry about it
    Posts
    1,219
    Reputation
    15
    Thanks
    99

    What should I buy?

    Hi, I would like to learn about hacking/programing code and how to make hacks etc. I am thinking about getting 'C++ for dummies' but I am not sure that that will be the right book. Will learning C++ allow me to make hacks like chams, wallhack, no spread and others for online games such as WarRock and Combat Arms like MPGH offers? And if so, what book do you recomend. Thanks!

    P.S. I am not a computer whiz by any stretch of the immagination. I don't know how to edit any of the .dll files or anything like that, do not know computer coding or anything like that but am open to learning them and have the time. If any of these skills are needed, please tell me. Thanks agian!
    Sexy sig ujelly?

  10. The Following 2 Users Say Thank You to Sharpe For This Useful Post:

    BigDeze (09-07-2009),Jimmy (08-15-2009)

  11. #6
    GOD's Avatar
    Join Date
    Jul 2008
    Gender
    male
    Location
    I am the God
    Posts
    11,084
    Reputation
    15
    Thanks
    1,517
    My Mood
    Amazed
    buy?

    download free using torrent :P!

    or there are alot of sites with c++ tuts
    I am the God.

  12. The Following 3 Users Say Thank You to GOD For This Useful Post:

    BigDeze (09-07-2009),Jimmy (08-15-2009),Sharpe (04-13-2009)

  13. #7
    timtom59's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    England
    Posts
    15
    Reputation
    10
    Thanks
    35
    My Mood
    Tired

    Post c++ im now learning

    hi everyone i am new to c++ and i was wondering if any of you guys can help me out with useful tips to start me off i curently have visual studio installed and i dont know how to complie i need to know that atm i have created a code which i think will make a program just saying hello world i was refered to it by a book but the book is a bit mindbogglering so im just wondering if any of you experinced programers can help me out!! or i could be like a aprentice and you teach me the basics of c++ if not i will most likly give up and then go to java. please help me out!!!

  14. The Following 2 Users Say Thank You to timtom59 For This Useful Post:

    BigDeze (09-07-2009),Jimmy (08-15-2009)

  15. #8
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    Here are some Tips :
    A. Get a book, don't try to learn it on your own.
    B. Do not skip the part on pointers. Most beginners do. It is very important.
    C. Devote at least 45%+ of your time to something programming related on school days. On weekends I devote no less then 85%.
    D. Don't give up. Promise yourself this before you start.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  16. The Following 16 Users Say Thank You to radnomguywfq3 For This Useful Post:

    (G)rapefruit (08-09-2009),BigDeze (09-07-2009),Cameronol (04-08-2010),CheapAudio (12-10-2009),compaq soul (08-03-2010),geebes888 (10-08-2009),Hassan (04-29-2012),Jimmy (08-15-2009),killer-c (07-30-2009),killercow15 (04-24-2010),LoudMime (07-27-2009),malskey (11-12-2016),Ricky1337 (09-05-2009),Slyth (06-05-2009),Synns (04-20-2009),timtom59 (04-13-2009)

  17. #9
    chiubyebye's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    72
    Reputation
    10
    Thanks
    17
    Depends alot on how you wold dedicate your time to learning C++. C++ is not a simple language, it takes years to totally MASTER the language. However, if you want to know how much time you would need to make a decent hack, I would hazard a guess of 1-3 months. Thats if you really go and devote your time on this.

    As you progress deeper into the language, it would be natural to you how each function would help you "hack" the game. Its just a matter of time and practice.

  18. The Following 3 Users Say Thank You to chiubyebye For This Useful Post:

    BigDeze (09-07-2009),Gab (08-26-2010),Jimmy (08-15-2009)

  19. #10
    blueduece2's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    South of Heaven
    Posts
    787
    Reputation
    17
    Thanks
    250
    My Mood
    Buzzed

  20. The Following User Says Thank You to blueduece2 For This Useful Post:

    Jimmy (08-15-2009)

  21. #11
    Toymaker's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    Hannah, Montana
    Posts
    659
    Reputation
    14
    Thanks
    193
    My Mood
    Amused
    I decided to make one more post I can refer all the people with horrific questions to. If you want to start learning programming, espeically C++, you need to set yourself a goal...

    ...for example, I only read the first four tutorials of cprogramming's collection over and over and was able to make multiple programs that weren't even in the tutorial...I'll give you guys an example, cuz im tired of 'how do i start!?' threads!

    Pretend you read this File I/O TUTORIAL to learn:


    #include <fstream>
    #include <iostream>

    using namespace std;

    int main()
    {
    char str[10];

    //Creates an instance of ofstream, and opens example.txt
    ofstream a_file ( "example.txt" );
    // Outputs to example.txt through a_file
    a_file<<"This text will now be inside of example.txt";
    // Close the file stream explicitly
    a_file.close();
    //Opens for reading the file
    ifstream b_file ( "example.txt" );
    //Reads one string from the file
    b_file>> str;
    //Should output 'this'
    cout<< str <<"\n";
    cin.get(); // wait for a keypress
    // b_file is closed implicitly here
    }

    The default mode for opening a file with ofstream's constructor is to create it if it does not exist, or delete everything in it if something does exist in it. If necessary, you can give a second argument that specifies how the file should be handled. They are listed below:


    ios::app -- Append to the file
    ios::ate -- Set the current position to the end
    ios::trunc -- Delete everything in the file

    For example:


    ofstream a_file ( "test.txt", ios::app );

    This will open the file without destroying the current contents and allow you to append new data. When opening files, be very careful not to use them if the file could not be opened. This can be tested for very easily:


    ifstream a_file ( "example.txt" );

    if ( !a_file.is_open() ) {
    // The file could not be opened
    }
    else {
    // Safely use the file stream
    }
    Now, you read this tutorial on using C++ to write to and read from files. But, YOU DID NOT ACTUALLY LEARN IT, UNTIL YOU USE IT..

    ...Try applying it, for example, make a 'trial use' program. Have a counter.txt that you read/write to to only let your users load your program 5 times without paying money. That's a good goal. I'll show you how I made it using nothing but the information above ^

    Code:
    #include <fstream>
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
      int x;
    
      //Opens for reading the file
      ifstream b_file ( "example.txt" );
      //Reads one string from the file
      b_file>> x; 
      if ( x > 5 ) { 
           cout<<"Maxed out!\n";
           system("pause");
           exit(0);
           } 
           else { 
              cout<<"Enjoy!\n";       
      //Creates an instance of ofstream, and opens example.txt
      ofstream a_file ( "example.txt" );
      // Outputs to example.txt through a_file based on current value+1
      x++;
      a_file<<""<< x <<"";
      // Close the file stream explicitly
      a_file.close();
      cin.get();    // wait for a keypress
      // b_file is closed implicitly here
    }
    }
    Good luck learning and not bugging people so much with your stupidity xD

  22. #12
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    I changed somethings. I think this will make it a little easier for newcomers to get started. I tried to give as much information as I could without making a huge-ass list... I mean after all that's what the forum is for...


    Lastly I am unlocking this thread. I think all stickies should be open to new ideas. this way in case a link ever stops working or someone thinks something should be added they have a place to post those concerns...

    Lol. maybe for the first time on MPGH...
    /opened
    Last edited by why06; 10-13-2009 at 12:42 PM.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  23. The Following User Says Thank You to why06 For This Useful Post:

    Lolland (10-13-2009)

  24. #13
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Whoa, I can see my past self.. this is trippy.
    Thanks for the section btw.

  25. #14
    Spike2009's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    69
    Reputation
    10
    Thanks
    56
    Guys im going to try and learn this, i hope i can do it

  26. #15
    lalakijilp's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    310
    Reputation
    9
    Thanks
    53
    My Mood
    Blah
    C++ Beginner's Guide

    maybe an idea to say it is alot of work

Page 1 of 4 123 ... LastLast

Similar Threads

  1. Replies: 28
    Last Post: 03-02-2009, 07:44 AM
  2. Replies: 8
    Last Post: 01-30-2009, 07:14 AM
  3. Could help beginer C++ users
    By skittlznick2 in forum C++/C Programming
    Replies: 7
    Last Post: 10-10-2008, 03:23 PM
  4. New Patch... Let the games begin
    By jebadiah in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-22-2008, 09:14 AM
  5. Begin hacking here.
    By tednugent in forum General Game Hacking
    Replies: 0
    Last Post: 06-11-2007, 09:43 AM

Tags for this Thread