Solved

Wanting to learn C++

Posted on 2012-03-10
5
473 Views
Last Modified: 2012-03-10
I have been programming in VB & VBA for years, but now fancy a new challange.  I've always wanted to learn C++, because of the possibilites it gives to a developer.  My ultimate objective will be to create cross-platform database applications, but I fully appreciate that it will take a good few years to get to the level required.

I could really do with a few pointers as to the right IDE and good books.  I have used Visual Studio - and was thinking that this would be a good, familiar starting point, but I want to give myself as many options as possible for the future, so this may not be the best idea.

I know this is a very vague question - but I always get good advice from the EE members, so it felt like a good place to start.

Thanks in advance.
0
Comment
Question by:Andy Brown
  • 3
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 500 total points
Comment Utility
If you're developing on Windows I'd stick with Visual Studio. Since you already know it as an IDE there's little point in making your life harder for no good reason. As IDEs go it's actually one of the better ones and its in-built debugger is second to none (IMHO).

As for books; assuming you are a complete novice I would start with C++ for Dummies 1 & 2 (I kid you not, they two books are a great way to learn the basics). You could then move onto more advanced stuff and I'd whole heartedly recommend you read Effective C++ and More Effective C++ by Scott Meyer. After those, Effective STL (also by Meyer) would be good choice. Those books alone should give you a reasonable grounding in the basics of C++.

Also, note: regardless of what you are told do not learn C before you learn C++. Whilst for the most part C++ is a superset of C the principles and idioms of writing Object Oriented code are very very different from the Prodecural code you write in C. Also, a lot of stuff you might do in C are consider seriously bad/poor practice or just plain deprecated/unnecessary in C++ (for example, using malloc and free are nearly always wrong and printf and sprintf are replaced by [far safer and more flexible] streams).

Hope this helps.
0
 

Author Comment

by:Andy Brown
Comment Utility
That's a real help - thank you.   I'll leave the question open for a little while longer and then allocate the points.
0
 

Author Comment

by:Andy Brown
Comment Utility
PS - Initially my apps will be PC based, but I would (eventually), like to create Mac based apps (or even other platforms).  Do you still think I'd be better of learning the basics using VS (and then moving over to the Mac equivalent)?
0
 

Author Closing Comment

by:Andy Brown
Comment Utility
Thanks guys - really appreciate your help on this.
0
 
LVL 40

Expert Comment

by:evilrix
Comment Utility
>> Do you still think I'd be better of learning the basics using VS
I do, because it will allow you to focus on learning C++ and not learning a new IDE. That all said, I use vim for all my editing but it's certainly not something I'd recommend unless you have already got a reasonable amount of experience using it :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now