I want to start C++ coding

Grab your favourite IDE and tinker with the innards of game engines

I want to start C++ coding

Postby Khaeotixs on Wed Apr 18, 2007 9:10 am

As the title says, but i have absolutely no experience coding except for hacking bits around in HTML, and i have absolutely no idea where to start...
Woe Kitten wrote:It's so old it's new again!

Athlete{UK} wrote:Dionysos. You kill yourself and piss me off in the process i'm coming after your ghost with a dyson you scum sucking fuck end!
Khaeotixs
Regular
Regular
 
Joined: Wed Mar 07, 2007 9:46 am
Location: the great and worshipful ENGLAND

Postby daap on Wed Apr 18, 2007 9:24 am

Image
a fR0n is A smiLe up-sIde d0wn...
User avatar
daap
Been Here A While
Been Here A While
 
Joined: Mon Apr 16, 2007 12:49 pm
Location: Leeuwarden / Terschelling. Holland

Postby Forceflow on Wed Apr 18, 2007 11:57 am

http://www.mindview.net -> good C++ books for free.

On the other hand, I'd suggest you start with something easier. I always thought that learning Java to grasp object-oriented forms is a lot easier.

Otherwise, start with C. Write that for a couple of monts, just simple command-line stuff to calculate area's, text-based games, ... then advance to C++ (which is object-oriented, thus harder if you have never heard of the OO principles).
User avatar
Forceflow
1337 p0st3r
1337 p0st3r
 
Joined: Sun Jul 16, 2006 12:13 pm
Location: Belgium

Postby Sauce on Wed Apr 18, 2007 12:05 pm

DO NOT LEARN C FIRST!

You will just have to un-learn it.

Start with C++, naturally! I find books easier than html tutorials, so go down to your local bookstore and see what they have. A good one is "Sam's Teach yourself C++ in 24 Hours".
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby zombie@computer on Wed Apr 18, 2007 12:25 pm

Sauce wrote:DO NOT LEARN C FIRST!

You will just have to un-learn it.

Start with C++, naturally! I find books easier than html tutorials, so go down to your local bookstore and see what they have. A good one is "Sam's Teach yourself C++ in 24 Hours".
bull. c is a very good basis to start when learning c++
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Postby ChopperDave on Wed Apr 18, 2007 1:45 pm

I agree with zombie -- C is critical. I also think C++ should not be your first language.

C++ is a hybrid language combining the low level capabilities of C with OO aspects. The easiest way to learn C++ (IMO) is to learn its components separately, then put them together once you grasp the concepts.

So for starters, I would learn a language that is pure OO, like Java. You'll learn how classes are constructed and used, without having to worry about low level details like memory management and pointers.

Then I would move on to C. It's pretty much on the complete opposite end of the spectrum. You'll focus on low level techniques like direct memory management, the heap and stack (crucial concepts), pointers, and others. C can be a tricky language to learn, so it may take you a while to fully grasp it.

Once you've got C and Java under your belt, learning C++ is pretty much just learning the syntax. You'll have already mastered the basic concepts to make use of it.

C++ does have some features that aren't in those two languages (i.e. templates), but those are more advanced features you shouldn't be concerned with for now.

Check out Kernighan and Ritchie's C Book for learning C. It's old, but C hasn't evolved much (if at all) for the past several years.

For Java, I don't really know any good books. Maybe one of the other guys around here knows a good one.
User avatar
ChopperDave
Rockstar San Diego
 
Joined: Wed Feb 21, 2007 6:06 pm

Postby Forceflow on Wed Apr 18, 2007 2:54 pm

We had introductory courses into Java with http://www.bluej.org/ and that book. It really helps visualising the object-oriented idea.
User avatar
Forceflow
1337 p0st3r
1337 p0st3r
 
Joined: Sun Jul 16, 2006 12:13 pm
Location: Belgium

Postby zombie@computer on Wed Apr 18, 2007 3:00 pm

oddly enough, OO programming is pretty easy once you realise how usefull it is :)
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Postby longshanks on Wed Apr 18, 2007 3:46 pm

I basically agree with ChopperDave, I started with Java programming and was able to transition to C++ reasonably well. I never learned C so if you want to take that step you can, you can do it without but its probably very valuable knowledge to have.
Just don't start with visual basic or some other basic language, the syntax and structure is so different than OO languages that you'll just have to unlearn everything. Although I have heard (haven't really looked into it) that C# is sort of an inbetween basic java and c++ thing that might be interesting to use (if others think negatively about C# please say so, I don't wanna give bad info), especially since it all works with windows forms etc so you can put together some simple windows apps, and all the memory is managed.
longshanks
Turbine Entertainment Software
 
Joined: Mon Nov 14, 2005 11:39 pm
Location: BOSTON!!!

Postby ChopperDave on Wed Apr 18, 2007 4:16 pm

C# is syntactically similar to Java -- if you can code in one you can pretty much code in the other.

I would avoid C# for the time being though, because then that opens up .NET, and given what you've told us it sounds like you're not ready for that yet.

But it may prove useful further on down the road, especially if you plan on playing around with XNA.
User avatar
ChopperDave
Rockstar San Diego
 
Joined: Wed Feb 21, 2007 6:06 pm

Postby Khaeotixs on Wed Apr 18, 2007 7:05 pm

God! more responses than usual...

Well, ill look at the links, and lok at some books...

Thanks you huys :-D
Woe Kitten wrote:It's so old it's new again!

Athlete{UK} wrote:Dionysos. You kill yourself and piss me off in the process i'm coming after your ghost with a dyson you scum sucking fuck end!
Khaeotixs
Regular
Regular
 
Joined: Wed Mar 07, 2007 9:46 am
Location: the great and worshipful ENGLAND

Postby Forceflow on Thu Apr 19, 2007 6:28 pm

Khaeotixs wrote:God! more responses than usual...

The Coding board is alive and kicking, thank you. 8)
User avatar
Forceflow
1337 p0st3r
1337 p0st3r
 
Joined: Sun Jul 16, 2006 12:13 pm
Location: Belgium

Postby Sauce on Mon Apr 23, 2007 3:32 pm

zombie@computer wrote:
Sauce wrote:DO NOT LEARN C FIRST!

You will just have to un-learn it.

Start with C++, naturally! I find books easier than html tutorials, so go down to your local bookstore and see what they have. A good one is "Sam's Teach yourself C++ in 24 Hours".
bull. c is a very good basis to start when learning c++

sure, c is good to learn, but alot of the syntax and bad habits it teaches you end up causing problems. By no means should c++ be your first language, as someone else already stated, but honestly, c is no good!

unless of course alot of the tutorials you will be using in your learning process involves c code instead of c++, in which case you will need to know how to convert it, but this shouldnt be the case anyway, as you are never meant to copy and paste tutorial code and then modify it - just take the concept of a specific aspect taught in a tutorial and then apply it by your own methods.
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby zombie@computer on Mon Apr 23, 2007 7:28 pm

Sauce wrote:
zombie@computer wrote:
Sauce wrote:DO NOT LEARN C FIRST!

You will just have to un-learn it.

Start with C++, naturally! I find books easier than html tutorials, so go down to your local bookstore and see what they have. A good one is "Sam's Teach yourself C++ in 24 Hours".
bull. c is a very good basis to start when learning c++

sure, c is good to learn, but alot of the syntax and bad habits it teaches you end up causing problems. By no means should c++ be your first language, as someone else already stated, but honestly, c is no good!
c has the exact same syntax as c++, and you need those basics if you ever want to turn oo in the first place. You got any idea what c is? not confusing it with c# ?
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Return to Programming

Who is online

Users browsing this forum: No registered users