Page 1 of 1
Is this a good way to learn c++?
Posted: Mon Nov 10, 2008 9:28 am
by ismetteren
I have created this game in java:
http://www.youtube.com/watch?v=U8fnkb4tgkw
Now i want to learn C++. Is it a good way to rewrite the game in c++, or should i start with something else?
Re: Is this a good way to learn c++?
Posted: Mon Nov 10, 2008 9:50 am
by programmerinprogress
From what I understand about java, C++ has an EXTREMELY similar syntax, since it is derived from C++.
I understand also that in Java you don't have to worry as much about memory management, whereas C++, it whould be one of your top priorities.
I would get a book, or follow some tutorials to look at the C++ syntax, you probably will find a few things that you need to make changes to, but If you already know how to program, I doubt it will be too hard to transfer your skills (and your code) from Java to C++
After that, you could probably get your game to compile in C++, just depends if the library you used can be used in C++ aswell I guess.
I hope this helped anyway
Re: Is this a good way to learn c++?
Posted: Mon Nov 10, 2008 10:59 am
by Trask
You may need to go through a tutorial or something to get you started first, but I don't think your task is impossible, but I don't think it will be easy as cake either. Either way, grab yourself a good C++(everyone raves for the learn it in 21 days book) and work through that or use it as a reference.
Re: Is this a good way to learn c++?
Posted: Mon Nov 10, 2008 12:05 pm
by ismetteren
OK, thanks :D
Re: Is this a good way to learn c++?
Posted: Mon Nov 10, 2008 2:52 pm
by dandymcgee
Haha, cool game. Looks almost exactly like the atari game, except it has power and a health bar. Good luck converting to/learning C++. Definitely post here if you get stuck with anything.