LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Good C++ tutorial which works for linux? (https://www.linuxquestions.org/questions/programming-9/good-c-tutorial-which-works-for-linux-156726/)

shadow.blue 03-12-2004 09:48 AM

Good C++ tutorial which works for linux?
 
Hi,

I am search of a good c++ tutorial which works for gcc in linux,
and not doing all the MS Visual C++ Code which gcc (likely) doesn`t
accept.

Do you know any good source, I am really hot to learn it :)

I have searched the web before, but there are thousands of tuts,
and I dont want to waste the time on a bad tutorial...

Regards,
-shad

Mega Man X 03-12-2004 10:41 AM

C++ is C++ everywhere :). What can happens is, that sometimes, some headers are shipped with one compiler that is not shipped with another one. At the top of my head, I'd say conio.h that has, among many others, the function getch(). That will only work with DOS compilers as Borland, DevC, Visual C++. What you can do is to get started anyway. When something does not work, then try to find a work around for it. There won't be many problems though. The important is to have a good understanding of the language first, I believe. Here are some very cool tutorials:

http://www.cplusplus.com/
http://www.cprogramming.com/

For g++ usage, you can simply do:

g++ -o <executable name> <yourSource.cpp>

To run your applications, do:

./ <executable name>

That would work with most basic programs since, at least at the beginning, you won't be linking libraries and stuff :)

Good luck!

shadow.blue 03-12-2004 10:59 AM

Thanks for your reply.

The thing is, I have been programming a lot of PHP before, so it is not quite hard to migrate... at least not for the basic functions.

What I am interested most are the "advanced" functions of C++, cause the basic
is not hard to learn...

I`ll check the links out, thanks

-shad

Mega Man X 03-12-2004 11:18 AM

Cool :) And I'm trying to learn php...ghehe. Well, anyway, those tuts has some advanced stuff. I cannot remember if they go up to classes as well, but probably they do :).

Good luck mate!

aaa 03-12-2004 03:52 PM

http://www.advancedlinuxprogramming.com/

Chris Weimer 03-13-2004 01:53 PM

http://www.neonostalgic.com/neo/c.html has good tutorials for C, and a bunch for UNIX/Linux programming. Also, you can find XLib and Linux GUI tutorials. :)

macewan 03-14-2004 05:43 PM

http://www.cplusplus.com/doc/tutorial/

AquamaN 03-15-2004 11:07 PM

Quote:

Originally posted by aaa
http://www.advancedlinuxprogramming.com/
I totally agree with aaa, I was actually using that book just before I read your post. It is AWESOME when it comes to learning things that are more indepth. The ONLY downside is that a lot of the code is in C and not C++ (although there are examples using C++). So you need to have a basic understanding of C in order to understand what they are using (and when I say basic, a VERY basic understanding will do).

-AquamaN


All times are GMT -5. The time now is 08:39 AM.