PDA

View Full Version : Tutorial for GNU/Linux C++



fqowehf
June 18th, 2012, 04:37 AM
I've been having troubles looking through out for tutorials of learning linux c++, but only C++ tutorials I found was for windows. But I dont want to learn that type of C++, I want the GNU/Linux one since I dont run windows and I am getting tired of the limitations in Java, any help?

muteXe
June 18th, 2012, 12:37 PM
http://www.cplusplus.com/doc/tutorial/

i typed 'c++ for beginners' into Google and that was the first hit.

dagoth_pie
June 18th, 2012, 03:36 PM
http://www.cplusplus.com/doc/tutorial/

i typed 'c++ for beginners' into Google and that was the first hit.
Out of the ones I've seen, that's the best C++ tutorial and reference.

11jmb
June 18th, 2012, 04:01 PM
There is very little that is special about Linux for when you start out. You will want to make sure you have g++ installed.

Then to compile and run the programs in the tutorial you just navigate to your source directory and use the following commands:



g++ source_file_name.cc -o executable_name
./executable_name


That is really the only linux-specific advice you will need for getting started.

Everything else in that tutorial looks like it is dependent on the C++ language, not linux

michalp
June 18th, 2012, 04:20 PM
Try to look for a book like c/c++ Primar Plus by Stephan Prata or something like that.I have my own very good experience with this one. :)

trent.josephsen
June 18th, 2012, 05:15 PM
Try to look for a book like c/c++ Primar Plus by Stephan Prata or something like that.I have my own very good experience with this one. :)
I've heard mixed reviews of Prata and I decided to look for a reliable review. I found accu.org, which has some book reviews (http://accu.org/index.php?module=bookreviews&func=search) by professional programmers. C++ Primer Plus doesn't make their Recommended list, seems like it might be more C-focused with C++ material patched on. (C Primer Plus, also by Prata, does get a Recommended rating.)

Not to say it's necessarily a bad book -- I wouldn't know. But you might want to consider getting one with a more consistent reputation.

fqowehf
June 18th, 2012, 08:43 PM
http://www.cplusplus.com/doc/tutorial/

i typed 'c++ for beginners' into Google and that was the first hit.

Okay thanks! Finally, not a windows C++ tutorial! :D
Because it'd be embarrassing if the best I could do in C++ is just making a program to check your PulseAudio version.

I attached it below as a zip file if you wan't to see ;)