LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 15
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
 
Old 03-12-2004, 10:41 AM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
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!
 
Old 03-12-2004, 10:59 AM   #3
shadow.blue
Member
 
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

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

Rep: Reputation: 63
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
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
http://www.advancedlinuxprogramming.com/
 
Old 03-13-2004, 01:53 PM   #6
Chris Weimer
Member
 
Registered: Jan 2004
Location: http://www.neonostalgia.com/
Distribution: Slackware 12.1
Posts: 81

Rep: Reputation: 15
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.
 
Old 03-14-2004, 05:43 PM   #7
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
http://www.cplusplus.com/doc/tutorial/
 
Old 03-15-2004, 11:07 PM   #8
AquamaN
Member
 
Registered: Oct 2002
Location: Ohio, USA
Distribution: OS X 10.4.8, Ubuntu 6.10
Posts: 146

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


Reply


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 09:01 PM.

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