Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-12-2004, 09:48 AM   #1
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Rep: Reputation: 15
Good C++ tutorial which works for linux?


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

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...

Old 03-12-2004, 10:41 AM   #2
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
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:

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!
Old 03-12-2004, 10:59 AM   #3
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Original Poster
Rep: Reputation: 15
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

Old 03-12-2004, 11:18 AM   #4
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
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!
Old 03-12-2004, 03:52 PM   #5
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Old 03-13-2004, 01:53 PM   #6
Chris Weimer
Registered: Jan 2004
Distribution: Slackware 12.1
Posts: 81

Rep: Reputation: 15 has good tutorials for C, and a bunch for UNIX/Linux programming. Also, you can find XLib and Linux GUI tutorials.
Old 03-14-2004, 05:43 PM   #7
Senior Member
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
Old 03-15-2004, 11:07 PM   #8
Registered: Oct 2002
Location: Ohio, USA
Distribution: OS X 10.4.8, Ubuntu 6.10
Posts: 146

Rep: Reputation: 15
Originally posted by aaa
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).



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching for a tutorial on how it all works kotoisin Linux - Hardware 2 03-09-2005 08:47 PM
looking for very good tutorial cintaputih Programming 1 02-12-2005 06:19 AM
Good Linux Tutorial for a windows user? FreeFromXP Linux - Newbie 7 07-29-2004 05:03 PM
Good, Cheap, 5.1 Sound Card that works with linux and is available to the UK Boffy Linux - Hardware 3 03-20-2004 09:20 PM
Does anyone knows a good tutorial on how to install software in linux Astropicachu Linux - Newbie 5 01-25-2004 10:49 PM

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration