C++

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

C++

Post by Xaos »

Where/what is the best place/tut to learn C++? I want to get started on it, especially as I am starting to get the hang of Java. But does anyone know any good tuts for learning? Something like halls' PHP tuts 1is something I'm looking for.
User avatar
vitinho444
Posts: 2819
Joined: Mon Mar 21, 2011 4:54 pm

Re: C++

Post by vitinho444 »

Xaos wrote:Where/what is the best place/tut to learn C++? I want to get started on it, especially as I am starting to get the hang of Java. But does anyone know any good tuts for learning? Something like halls' PHP tuts 1is something I'm looking for.
I've learned C++ from a Game Dev tutorial series, like I've learned PHP :P
But a good site for tutorials (it has c++), is thenewboston. Very good videos and teaching quality.

http://www.thenewboston.com
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: C++

Post by Jackolantern »

There are plenty of good tutorials (including the one already linked), but I just wanted to offer some advice. If you have never done so, learn about the way computers handle memory, represent data, little endian/big endian difference, learn Boolean algebra, memory addressing, etc. C++ has many more low-level parts than PHP or Java, and when I was first learning programming I decided to tackle C++. It completed confused me. I just didn't understand pointer arithmetic, bit-wise operations (they are actually extremely useful, powerful and used often in C++, even though they exist in both PHP and Java as well), and other low-level parts. Ideally understanding the basics of Assembly is great before tackling C++, but I would not say required. If you could find a decent assembly book, and read the first few chapters before they introduce the actual assembly code, that would help out a lot. Pretty much every assembly book has to start with chapters on how numbers are represented, explaining 2's compliment, little endian/big endian, how to convert base-2 to base-10, etc.
The indelible lord of tl;dr
User avatar
vitinho444
Posts: 2819
Joined: Mon Mar 21, 2011 4:54 pm

Re: C++

Post by vitinho444 »

Jackolantern wrote:There are plenty of good tutorials (including the one already linked), but I just wanted to offer some advice. If you have never done so, learn about the way computers handle memory, represent data, little endian/big endian difference, learn Boolean algebra, memory addressing, etc. C++ has many more low-level parts than PHP or Java, and when I was first learning programming I decided to tackle C++. It completed confused me. I just didn't understand pointer arithmetic, bit-wise operations (they are actually extremely useful, powerful and used often in C++, even though they exist in both PHP and Java as well), and other low-level parts. Ideally understanding the basics of Assembly is great before tackling C++, but I would not say required. If you could find a decent assembly book, and read the first few chapters before they introduce the actual assembly code, that would help out a lot. Pretty much every assembly book has to start with chapters on how numbers are represented, explaining 2's compliment, little endian/big endian, how to convert base-2 to base-10, etc.
True story, i still don't know much of C++, i just learned the syntax, some good ways of doing things and mainly gaming related. I know nothing about Win32Api and so on.. It makes me sad :(
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: C++

Post by Jackolantern »

Win32 API is a beast, and really, so is MFC. Those are really handy if you want to write native Windows GUI applications, but what I meant was just learning how computers work at the base level. It isn't a requirement for C++ like it is for Assembly, but it will help out so much. After learning Assembly, I can't wait to tear into C++ again sometime. As nice as the safety nets can be sometimes in languages like Java and C#, sometimes it is nice to have a language that will take a backseat, trust you know what you are doing and allow you to work directly with the bytes. And C/C++ do that :)
The indelible lord of tl;dr
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Re: C++

Post by Xaos »

That's great advice Jacko, something I hadn't even though of. What's the point of learning a new language if I can't unleash all of its power? :D Do you know any places I can learn all of this stuff?
User avatar
vitinho444
Posts: 2819
Joined: Mon Mar 21, 2011 4:54 pm

Re: C++

Post by vitinho444 »

Jackolantern wrote:Win32 API is a beast, and really, so is MFC. Those are really handy if you want to write native Windows GUI applications, but what I meant was just learning how computers work at the base level. It isn't a requirement for C++ like it is for Assembly, but it will help out so much. After learning Assembly, I can't wait to tear into C++ again sometime. As nice as the safety nets can be sometimes in languages like Java and C#, sometimes it is nice to have a language that will take a backseat, trust you know what you are doing and allow you to work directly with the bytes. And C/C++ do that :)
Yeah you're right. Well i was more looking into Win32 Api for hacking purposes :P (memory hacking). Just to enjoy more some games.
Xaos wrote:That's great advice Jacko, something I hadn't even though of. What's the point of learning a new language if I can't unleash all of its power? :D Do you know any places I can learn all of this stuff?
I will follow your advice too and learn some assembly. Also i would like to know some good assembly tutorials if you know any. :D
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: C++

Post by hallsofvallhalla »

This is the best place to learn C++

Image


Learning C++ is a big black whole where it sucks all your knowledge and time in. You wake up a month later realizing you could be 100x farther in C#, JS, VB, ect...


:P
User avatar
vitinho444
Posts: 2819
Joined: Mon Mar 21, 2011 4:54 pm

Re: C++

Post by vitinho444 »

hallsofvallhalla wrote:This is the best place to learn C++

Image


Learning C++ is a big black whole where it sucks all your knowledge and time in. You wake up a month later realizing you could be 100x farther in C#, JS, VB, ect...


:P
Hehe nice comparison.

You make me realize i don't need to waste much time on it right now since i wont use it soon.
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Re: C++

Post by Xaos »

Haha. So you recommend C# over C++? The same questions about tuts still apply... :D
Post Reply

Return to “Beginner Help and Support”