C++ beginnings

Hi all.

Currntly studying psych and want to go into AI. The university in question require skills in either Java, c or c++.

Im told C++ would be best to learn so the question is…

Where do I start? Are there any resources that will tell me how to learn with open SUSE as my os?

All help is appreciated!

anthony

Take a look to this site: FlazX - Welcome to your Computer & IT learning center.
I’m download here about 6GB great programming books in the past 2 years. :slight_smile:
Good luck.

Start simple.

  1. Install the devel_C_C++ pattern (zypper in -t pattern devel_C_C++)
  2. Use your favorite text editor (vim, emacs, kate, gedit, …)
  3. Start hacking by learning general object oriented design, C++ syntax, and fundamentals.

My thanks to both of you for this great advice!

The books appear pricey but then, more specialised books tend to be and there are some fabulous titles there. I can see me giving myself a treat.

Thanks also for the nuts and bolts advice of getting started in c++

I will find an online tutorial to help me understand the concepts you describe.

Thanks both.

anthony.

If your looking for a good book try
Dietel - C++ How to Program 5th Edition
For starting out I highly recommend using Kate as your text editor because it has built in file browser and terminal emulator so for learning where you only have to compile a few files at most this works out great, plus it knows how to syntax highlight c++.
Geany is a nice lightweight IDE that could be okay to learn on probably.
Later once you know what your doing and projects get complex you can try some of the other IDES

Anjuta - C++, C, Gnome/GTK primarily
KDevelop - C++ , QT/KDE primarily
Mono Develop - C#/GTk

Netbeans - Many languages, great C++ support including QT in upcoming version - My Preferred IDE for large projects plus it has standalone C++ version. Cross platform

Eclipse - Many languages, Good ide but somehow like Vi just couldn’t get into it. Cross platform

Designers:

QtDesigner for qt applications (kde)
Glade for gtk (gnome)
Glade Interface Designer (Glade 3) for gtk (gnome)

If your planning on doing qt/ kde development I can recommend the following book:

C++ GUI Programming With Qt 4 (2006).chm By JasminBlanchette, MarkSummerfield

Unfortunately I don’t know off hand of any good gtk books.

Note too that you can install the source for almost any of the Linux apps you installed so can just look at the source code for examples of code. Your best bet here is kde/qt stuff as most linux stuff is still written in C.

Thanks silenuz, it was also informative to me.

There is a nice C++ IDE for linux called codeblocs., check it :P, and about C++ learning, what do you want? Just to learn C++ or more? If you want more, you should check www.topcoder.com/tc, there are a lot of programming tutorials, programming problems, writing software problems, etc.

Toni

My university teaches an intro to C++ using the book “Thinking in C++”. It can be downloaded from the author’s website for free, as a multi page html document, at:

Bruce Eckel’s MindView, Inc: Thinking in C++ 2nd Edition by Bruce Eckel

I haven’t read the book yet so I can’t say if it’s good, but the price tag is great.