View previous topic :: View next topic |
Author |
Message |
Grim Master Cheater
Reputation: 0
Joined: 28 Jun 2006 Posts: 260 Location: Bay Area
|
Posted: Sat Oct 17, 2009 7:29 pm Post subject: New to programming (C++) / Questions |
|
|
I just started learning C++ with http://www.cplusplus.com/doc/tutorial/ since two days ago and I have some questions to ask.
How long does it take to become proficient in a programming language like C++ and be able to code more complicated programs smoothly?
How much do I have to learn to be able to do that?
By learning C++ from that site, will I have enough information to code programs to hack / cheat in games?
EDIT: After two days I can code really simple programs that can only do very simple things such as respond to your answers that you type or finding the area/ circumference of a circle.
|
|
Back to top |
|
 |
Guy Expert Cheater
Reputation: 0
Joined: 30 May 2009 Posts: 187
|
Posted: Sat Oct 17, 2009 7:37 pm Post subject: Re: New to programming (C++) / Questions |
|
|
Grim wrote: | I just started learning C++ with http://www.cplusplus.com/doc/tutorial/ since two days ago and I have some questions to ask.
How long does it take to become proficient in a programming language like C++ and be able to code more complicated programs smoothly?
How much do I have to learn to be able to do that?
By learning C++ from that site, will I have enough information to code programs to hack / cheat in games?
EDIT: After two days I can code really simple programs that can only do very simple things such as respond to your answers that you type or finding the area/ circumference of a circle. |
It depends what you want to do - C++ is such a broad language, you're just touching on using STL. For writing a game engine, you may use POSIX networking functions, STL file i/o, DirectX/OpenGL, etc. There's so much to learn, it all depends on how well you fit into the curve.
_________________
Has anyone seen Hitler around..? If so, PM me! |
|
Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Sat Oct 17, 2009 7:37 pm Post subject: |
|
|
All of these questions are relative to the speed in which you learn, or the relevance of the project you are pursuing.
How long: depends how fast you learn.
How much: depends on your project.
Hacks/Cheats: simply changing the value of a pointer or using a simple API.
|
|
Back to top |
|
 |
407 Master Cheater
Reputation: 0
Joined: 25 Oct 2007 Posts: 357
|
Posted: Sat Oct 17, 2009 8:08 pm Post subject: |
|
|
I think it's easier to learn if you have previous programming knowledge.
|
|
Back to top |
|
 |
Grim Master Cheater
Reputation: 0
Joined: 28 Jun 2006 Posts: 260 Location: Bay Area
|
Posted: Sat Oct 17, 2009 9:09 pm Post subject: |
|
|
Well I'm still a junior in high school and I plan on majoring in Computer Science and later on break into the game industry if I can. I'm planning to learn as many programming languages in my free time during high school so I can advance my skills further in college while taking more difficult classes.
Next year (sr year) I'm going take AP Comp Sci which teaches Java. I am going to spend as much time as I can at home on C++ as of now.
EDIT: I think I am a fast learner depending on how I feel. I can understand things easily but sometimes I get confused when it gets late which is right now. Can anyone explain stringstream to me?
I'd appreciate it if you guys could point me in the right direction My future depends on it
|
|
Back to top |
|
 |
Guy Expert Cheater
Reputation: 0
Joined: 30 May 2009 Posts: 187
|
|
Back to top |
|
 |
Grim Master Cheater
Reputation: 0
Joined: 28 Jun 2006 Posts: 260 Location: Bay Area
|
Posted: Sat Oct 17, 2009 9:44 pm Post subject: |
|
|
Wow, you're only a junior in high school? It shows how behind I am, I hope I can catch up and learn more fast
EDIT: A method that I use to learn is by trying to understand each line. Correct me if I am wrong (I don't use terms right sometimes)
Code: | string mystr ("1204");
int myint;
stringstream(mystr) >> myint; |
1st line: Declares a string object with the value 1204
2nd line: Declares an int object
3rd line: It inputs the value of mystr into myint?
|
|
Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Sun Oct 18, 2009 8:32 am Post subject: |
|
|
Grim wrote: |
Code: | string mystr ("1204");
int myint;
stringstream(mystr) >> myint; |
1st line: Declares a string object with the value 1204
2nd line: Declares an int object
3rd line: It inputs the value of mystr into myint? |
Little more info:
1st line: declares/instantiates a string object, and calls the appropriate constructor that will initialize the string to hold "1204";
2nd line: declares/insantiates an int object
3rd line: creates a stringstream object and calls the constructor that will initialize it to hold the contents of mystr. Then it calls the >> operator of stringstream which will in this case convert "1204" (string) to an int with value 1204 and put it in myint.
|
|
Back to top |
|
 |
|