C++
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: C++
I've learned C++ from a Game Dev tutorial series, like I've learned PHPXaos 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.

But a good site for tutorials (it has c++), is thenewboston. Very good videos and teaching quality.
http://www.thenewboston.com
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: C++
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
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: C++
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 sadJackolantern 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.

- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: C++
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
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: C++
Yeah you're right. Well i was more looking into Win32 Api for hacking purposesJackolantern 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

I will follow your advice too and learn some assembly. Also i would like to know some good assembly tutorials if you know any.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?Do you know any places I can learn all of this stuff?

- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: C++
This is the best place to learn C++

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...


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...

- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: C++
Hehe nice comparison.hallsofvallhalla wrote:This is the best place to learn C++
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...
You make me realize i don't need to waste much time on it right now since i wont use it soon.