Is this a good way to learn c++?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
ismetteren
Chaos Rift Junior
Chaos Rift Junior
Posts: 276
Joined: Mon Jul 21, 2008 4:13 pm

Is this a good way to learn c++?

Post 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?
Image ImageImage Image
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Is this a good way to learn c++?

Post 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 ;)
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
Trask
ES Beta Backer
ES Beta Backer
Posts: 738
Joined: Wed Oct 29, 2008 8:17 pm
Current Project: Building a 2D Engine
Favorite Gaming Platforms: Sega Genesis and Xbox 360
Programming Language of Choice: C/C++
Location: Pittsburgh, PA
Contact:

Re: Is this a good way to learn c++?

Post 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.
MarauderIIC wrote:You know those people that are like "CHECK IT OUT I just made Linux run on this piece of celery [or other random object]!!"? Yeah, that's Falco, but with ES.
Dear god, they actually ported ES to a piece of celery!
Martin Golding wrote: "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
User avatar
ismetteren
Chaos Rift Junior
Chaos Rift Junior
Posts: 276
Joined: Mon Jul 21, 2008 4:13 pm

Re: Is this a good way to learn c++?

Post by ismetteren »

OK, thanks :D
Image ImageImage Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Is this a good way to learn c++?

Post 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.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply