L
Lee.kain
I want to learn C++! does anyone have any advice?
Lee
Lee
I want to learn C++! does anyone have any advice?
Lee
JoeC said:Yes, get started. I personally like accelerated C++.
http://www.amazon.com/Accelerated-C...8120643?ie=UTF8&s=books&qid=1182463388&sr=8-1
It would depend on how much experience you have with programming.
Start by learning the compiler do a hello world program. Learn the
basics. A few years ago I was in the beginner mode. It is very
challenging. Take your time experiment. start with the standard
inputs and outputs. Learn the data types learn program flow. Don't
get too caught up with pointers, learn about the standard libraries
especially string and vector. C++ is a strict language but there are
ways to get around the strict rules. Learn the rules first.
Seconded. Also, DO NOT USE VISUAL C++ 6.0!!!!! If you're using
Windows, start with "console" programs, do not use MFC. Avoid
Microsoft-isms (stdafx.h and _TCHAR/_tmain). MinGW is available for
free and is highly Standard compliant (modulo "export"), and so is
Visual Studio 2005 Express, also compliant (assuming /Za. again modulo
"export").
Joshua said:depends on how much programming experience you have already.
If you have no experience, here is what helped me:
http://math.hws.edu/javanotes/
this is a great tutorial for java. learn that, the skills will
transfer over to c++ and the syntax is very similar. after that, you
can gather the rest from c++ code examples all over the web.
Seconded. Also, DO NOT USE VISUAL C++ 6.0!!!!! If you're using
Windows, start with "console" programs, do not use MFC. Avoid
Microsoft-isms (stdafx.h and _TCHAR/_tmain). MinGW is available for
free and is highly Standard compliant (modulo "export"), and so is
Visual Studio 2005 Express, also compliant (assuming /Za. again modulo
"export").
depends on how much programming experience you have already.
If you have no experience, here is what helped me:http://math.hws.edu/javanotes/
this is a great tutorial for java. learn that, the skills will
transfer over to c++ and the syntax is very similar. after that, you
can gather the rest from c++ code examples all over the web.
Scoots said:I'd say it depends on whether you are used to OOP (Object-Oriented
Programming) or not.
If you're not, it can be horribly confusing.
Disagree.
Especially once you get into it and you suddenly have pointers flying
everywhere
and not understanding when you're copying something and
when you're copying the address.
My suggestion if you don't know OOP, is you learn C#.
C# on the very
basic level (before web, multi-threading, databases, etc), is fairly
close to C++. Infact, it's built off of it. I don't mean tinker
long, but long enough to learn how objects work, without having to
worry about the difference between a pointer and a reference. Once
you start to understand OOP (it shouldn't take too long), then
switching is much easier. Then it's just pointer manipulations of
what you've already done.
Obviously, some people will disagree with me.
There are a lot of
places to start. Unfortunately, there are a lot of bad ones too.
<snip>. I would regard the general consensus
of this group as one reliable source.
To the OP: As well as "Accelerated C++", suggested elsethread, you
might want to look at "Thinking in C++"
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html
I'm not personally familiar with it but it is often recommended in
this group. It's online and free.
Gavin Deane
My suggestion if you don't know OOP, is you learn C#.
BobR said:Where the hell is 'C#' for GNU/Linux?
'pointers are rarely needed in C++. '
--Again, application dependant. What I'm writing right now is VERY
pointer dependant. But if you're learning you're going to want to use
a lot of pointers, because otherwise you really aren't learning C++ to
the extent it can be used.
'Obviously, some people will disagree with me.'
*Cough* ;-)
'C++ !=OOP'
--This is true. Depends on the application though. Object Oriented
Programming will almost 100% be required of you at some point. C++
doesn't make it all that friendly.
'pointers are rarely needed in C++. '
--Again, application dependant. What I'm writing right now is VERY
pointer dependant. But if you're learning you're going to want to use
a lot of pointers, because otherwise you really aren't learning C++ to
the extent it can be used.
For me, having learned C# first, c++ was learning a slightly new
syntax, and direct manipulation of pointers. Nothing else.
Pointers are ONE of the things that distinguishes C++ as a 'more
powerful' version of it's anscestor, C. The use of pointers and OOP
is a major reason that people want to learn C++, not C.
And, well,
true, you can write little programs, and even some larger programs
with c++, but if you do, without ever encountering a pointer, then why
not go write in basic?
And I think that there are better starting
places than simply installing vc++ 6.0. (*twitch*)
Go to this link nice online tutoring given by him. try it out
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.