Advertisement

Learning C++ Interactively?

Started by December 06, 2015 12:44 AM
2 comments, last by Anri 9 years ago

Hi guys,

So, my native programming language is Java which although is becoming more and more of a game dev language, it's something that I'm not prepared to use. I have however dabbled in C/C++ and would like to learn the language even further to what I already know.

I'm here writing to you guys because I would like to know if anyone knows of any tutorials out there that teach C/C++ in an interactive way. What do I mean by that? Well, there's a website called "Codecademy" (some of you might of heard about this site) who teach you major web based languages such as HTML/CSS, JavaScript, Java and Python.

Yes I know that I could probably buy books that teach me C/C++ but I'm a learner who doesn't like reading and copying from a text book but rather be given an instruction and be expected to do it, which is what Codecademy does. But it doesn't do the langauge in question.

Also, as a sort of second question on the side that's kinda related to this one... What is your gamedev language and how did you learn it?

Thanks guys!

Jamie.

There are no websites like Codecademy for C++. Java is like a pond. C++ is an ocean. I bought a C# book (Pretty similar to Java) for beginners, and it was about 200 pages, give a bit. I later bought a C++ book for beginners, which turned out to be 1,000 pages. Your best bet to be 'taught' is college or some software class.

If you want instructions, go here or here. This looks similar to Codecademy.

Keep in mind Codecademy, and websites like it, have sometimes taught bad habits to students. As NightLone once told me, Java is a watergun, while C++ is a real gun. It's easier to shoot yourself with a real gun. It's best to do things on your own, following standard conventions.

My gamedev languages are C++ and C#, although I didn't get far with C++ since it was so much more painful than C# (Which I started with). I did manage to get a basic shooter up with it using SDL, though. I currently use Unity and C#, as I like to see things in front of me (Unity's visual systems) and only have to code the actual game. I learned C++ from a friend who tutored me, and taught myself C# using this amazing book. The author of the book also had these free tutorials online which helped a lot. FYI, he released the second edition of his book, which is different from the one I linked earlier. The book also appears to be fully available on Amazon by looking at the preview.

Good look with your journey into C++.

What will you make?
Advertisement

The same thing came up recently in this thread: http://www.gamedev.net/topic/673274-cant-learn-c/

In it there was the following:

http://ideone.com/ website mentioned it doesn't have tutorials but has an interactive compiler like code academy.

http://www.programmr.com/practice/ this website also came up and might have both interactivity and lessons. I didn't create an account so I don't know.

http://www.tutorialspoint.com/compile_cpp11_online.php and http://www.tutorialspoint.com/cplusplus/index.htm this came up as well.

If you use the later two please report back and tell me how they are I'm curious but don't have the time to check them out.

-potential energy is easily made kinetic-

Sounds like you might be better off taking a course in C or C++? Any evening courses in your neck of the woods? There isn't much in the way of options here I'm afraid unless taking a look at places like Treehouse(not even sure if they have such courses for that matter).

Traditionally my game development language has been C++ but now I'm pretty much a Java programmer. That said, my current project(a Raspberry Pi game) has me using the JNI to have C++ use SDL for hardware acceleration. I personally learned the hard way by skimming over C/C++ to get to the juicy graphics stuff with DirectX many moons ago. Given a second chance, I would have put aside game programming and knuckled down with my books to learn C and C++ proper - definitely C if I had to choose between them. As it stands, I feel that knowing C and Java is a good start before learning C++ as you know two languages that deal with structured and OOP programming in their extremes before jumping into C++ which gives you the choice of both. As for Java, I learned it at Uni and it kinda just stuck with me; Strings and jars are the main attraction for me.

For me, learning a language is not the hard part; its dealing with IDEs, compilers and the numerous options. I'm finding that ditching the IDE in favour of command line & make files helps in understanding what actually goes on when we hit that build'n'run button.

Anyway, there's more to tell but...well...I wouldn't want to bore you all...

Languages; C, Java. Platforms: Android, Oculus Go, ZX Spectrum, Megadrive.

Website: Mega-Gen Garage

This topic is closed to new replies.

Advertisement