C++

Discussion in 'Code Snippets and Tutorials' started by Billy, Mar 14, 2007.

Thread Status:
Not open for further replies.
  1. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    I want to learn C++ so i can use xna game studio and program games. is it very hard to learn c++ and how long do you think it will take to learn? also if i do learn it will I be able to actually make a game or is it really confusing? ok, lastly, are there any helpful tutorials that anyone has to help me get started.
     
  2. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    I would say use the microsoft help for learning your first few programs. Join a C++ programing board for some help. And unlike vb C++ source code is NOT a good place to learn unless it is well explained or you know alot of c++. I would say go to a libraty, book store or possible torrents and get some C++ programing guides. You should learn scar or vb beofre moving over so you have some programing knowledge
    here are a few tutorials
    http://www.cplusplus.com/doc/tutorial/
    http://www.cprogramming.com/tutorial.html
    for xbox programing
    http://www.xnaresources.com/
     
  3. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    is it possible to make a game with vb because i know a little bit of basic and it seems a lot easier than c++.
     
  4. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    probley I have heard people saying that, but C++ games would be alot more complex
     
  5. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    do you mean more complex like more features or complex like hader to program. if you mean more features what would those features be? also, how hard would it be to program a game in vb?(i know its hard to answer that but i just need a general idea)
     
  6. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    well you would need to know how to load bitmaps to a frame, paint lines, varilbles, detect key press, and make good grapihics. I belive C++ is more geared to gameing than vb6. Maybe make a few simple games in vb6 while learning C++ game programming.
     
  7. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    ok, thank you very much for your help. i am going to start with vb by making some neopets related programs and then learn how to make games. after that then ill start c++
     
  8. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    I tried programming in C++ the other day. I made some stupid thing where you enter your name and it says "hello (name) welcome" and then when you pushed a button it exited. It was hard :( and theres no GUI for C++ so if you dont want your programs to run in command prompt then you would have to make a GUI for it. But I want to be a programmer when I grow up so ill end up learning it eventually.
     
  9. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    but doesnt microsoft make visual c++.net?
     
  10. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    with visual c++ 2005you cannot make exes that anyone without microsoft visaul c++ 2005 could use. I think with visual C++ you could make a gui. I have no clue I am just starting to learn c++ mostly for making nintendo ds games. As for gamming use marcromedia flash it is pretty easy to learn.
     
  11. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    No I have visual C++ and its not like VB6 at all, you don't drag buttons on it... you have to do some code and stuff. Kinda like making a button in HTML
     
  12. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    Learning the very basics of C++ where you know the STL well enough that you don't need to pull out your STL Bible (and if you are serious about learning , you better get one) can take months.

    Learning how to use c++ to do game programming can take decades to be proficient at.

    No one will ever know everything about C++ and its capabilities, but as long as you are persistent, driven, and ready to dive into hell you will succeed! Don't give up if you are seriously interested in becoming a gaming programmer.
     
  13. ctm_91

    ctm_91 Level III

    Joined:
    Jan 8, 2007
    Messages:
    661
    Likes Received:
    0
    Location:
    Florida
    Im currently learning C++ in school, and i have heard that you can make abers with it. can anyone give me an aber code written in C++ as a template for me to learn how to make one?
     
  14. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    i have written one in c++, I will not give you the code, however if you wish to attempt at such a program, if you have any specific questions about why a function you have written isn't do as you wish it to do I'd gladly help you.
     
  15. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    thanks for the feedback mystical( or should i call you Robawtic) i decided to learn vb,go on to c# and then try to learn c++ so by then ill have a lot of programming experience. just wondering, how long did it take you to learn c++?

    p.s. you need a new sig now that you changed your name ;)
     
  16. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    I started learning c in jr high school, then took the classes that were offered in high school. Took a few college courses. Learned most the practical uses on my own however. Taking classes definitively helps.
    Yeah I know i need a new sig :(
     
  17. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    so do you think with a lot of hard work and dedication, i could be able to learn most of the simple stuff in a year or two?
     
  18. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    absolutely, you should really focus on learning the STL, and maybe even try writing your own library of functions, which as you get better and learn more can always improve.
     
  19. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    sorry to be asking so many questions, but this could change the rest of my life if i want to become a programmer when i grow up. so do you think it would help to learn c# first. if so, how long would it take to learn that?
     
  20. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    um, learning c# would help you learn a the syntax of c++ but as far as learning c++ to use it at its best, which being very portable, c# will not help you much as it does not deal with the STL and is constricted to running with the microsoft .net framework installed, c++ on the other hand is capable of running on any platform.
     
Thread Status:
Not open for further replies.