Page 1 of 1
C++
Posted: Sun Aug 04, 2013 7:13 pm
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.
Re: C++
Posted: Sun Aug 04, 2013 9:27 pm
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
But a good site for tutorials (it has c++), is thenewboston. Very good videos and teaching quality.
http://www.thenewboston.com
Re: C++
Posted: Sun Aug 04, 2013 11:04 pm
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.
Re: C++
Posted: Mon Aug 05, 2013 10:15 am
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

Re: C++
Posted: Mon Aug 05, 2013 10:37 am
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

Re: C++
Posted: Mon Aug 05, 2013 12:24 pm
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?

Do you know any places I can learn all of this stuff?
Re: C++
Posted: Mon Aug 05, 2013 1:08 pm
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

(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?

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.

Re: C++
Posted: Mon Aug 05, 2013 1:55 pm
by hallsofvallhalla
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...

Re: C++
Posted: Mon Aug 05, 2013 3:25 pm
by vitinho444
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...

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.
Re: C++
Posted: Mon Aug 05, 2013 4:29 pm
by Xaos
Haha. So you recommend C# over C++? The same questions about tuts still apply...
