LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-15-2005, 10:16 PM   #1
Vodius
LQ Newbie
 
Registered: Mar 2005
Posts: 27

Rep: Reputation: 15
Need help learning C++


Well , I don't need help so much as some points in the right direction. Here is my list of questions.

A. What are some good C++ Linux books I can learn from
B. What are some good website references
C. How advanced would one have to be to start looking at the kernel source and learning from it?
D. I bought the book "C++ for dummies" and it only has console stuff, can I use it with Linux?


Thanks in advanced.
 
Old 05-16-2005, 12:16 AM   #2
redhatrosh
Member
 
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483

Rep: Reputation: 30
One, there are a lot of good C++ books you can learn from.
One is, Object Oriented Programming with C++, by E. Balaguruswamy, and is much easier to grasp as a beginner.
Thinking in C++, by Bjourne Stroustrap is good. (psst..he's the inventor or originator )
"The complete reference: C++" by Herbert Schildt is another good book.

For using C++ in linux you must have the gcc compiler installed. You can search google for how to compile and run C++ programs. Another form of gcc is g++ compiler.

www.programmersheaven.com is one of the best ones where you would get a lot of source code of different variety of programs.
 
Old 05-16-2005, 12:32 AM   #3
sasho
Member
 
Registered: Jan 2005
Distribution: Arch
Posts: 120

Rep: Reputation: 17
Quote:
Originally posted by redhatrosh

Thinking in C++, by Bjourne Stroustrap is good. (psst..he's the inventor or originator )

www.programmersheaven.com is one of the best ones where you would get a lot of source code of different variety of programs.
Psst... the book title you quoted is by Bruce Eckel
 
Old 05-16-2005, 03:10 AM   #4
Chris Weimer
Member
 
Registered: Jan 2004
Location: NYC
Distribution: Fedora XFCE
Posts: 91

Rep: Reputation: Disabled
Quote:
Originally posted by Vodius
Well , I don't need help so much as some points in the right direction. Here is my list of questions.

A. What are some good C++ Linux books I can learn from
B. What are some good website references
C. How advanced would one have to be to start looking at the kernel source and learning from it?
D. I bought the book "C++ for dummies" and it only has console stuff, can I use it with Linux?


Thanks in advanced.
A. All C++ books are compatible with Linux. Languages (unless specifically designed for a particular OS like Visual Basic) works on any OS that you can get a compiler for. C++ doesn't have any OS-specific features in it's standard form.

B. you could visit my site.

C. Very advanced.

D. Yes.

Chris

Last edited by Chris Weimer; 05-16-2005 at 03:15 AM.
 
Old 05-16-2005, 03:28 AM   #5
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
hi,
I don't think about hacking the kernel like a simple task, could you write some windows stuff in a matter of months if you had the source? Excuse me but I don't think so... but it all depends on you at the end. If you are in a hurry, have yourself helped by an advanced c++ programmer(ie not the average you find in universities or programmers doing simple/medium projects in the enterprise.

Last edited by mrcheeks; 05-16-2005 at 03:30 AM.
 
Old 05-16-2005, 04:18 AM   #6
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
I would recommend learning basic console C++ before you get into anything platform-specific. That way you have a good C++ foundation and you know clearly what is standard C++ and clearly what is Linux C++. The console stuff should be entirely portable to any platform as long as you don't use any libs that aren't part of C or C++.

As far as kernel programming, that is done in C which doesn't have near the features that C++ does; by learning C++ you also learn a lot of C, but unless you set out to learn C also it's vague as to what parts of C++ are C as well.

Here is where I learned C++ (no Linux-specific support however):
http://www.cplusplus.com/doc/tutorial/
http://cplus.about.com/
http://newsgroups.borland.com/cgi-bi...students&utag=
http://newsgroups.borland.com/cgi-bi...uage.cpp&utag=
http://groups.google.com/groups?grou...B%2B.moderated
http://groups.google.com/groups?group=comp.lang.c%2B%2B

ta0kira

PS This is a very good reference for the Standard Template Library. Take a look at it after you learn the basic parts of C++:
http://www.sgi.com/tech/stl/table_of_contents.html

Last edited by ta0kira; 05-16-2005 at 04:20 AM.
 
Old 05-16-2005, 06:42 AM   #7
redhatrosh
Member
 
Registered: May 2004
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483

Rep: Reputation: 30
Quote:
Psst... the book title you quoted is by Bruce Eckel
Oh yes...I just mixed up!

However, there are two books

1) Thinking in C++, by Bruce Eckel (as told by sasho)
2) The C++ programming langugae, by Bjourne Stroustrap

You can find hhis other books and the above one in pdf format at

http://64.78.49.204/

In case you dont have adobe acrobat reader you can download it from here

Adobe Acrobat reader
 
Old 05-16-2005, 06:57 AM   #8
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Stop calling him Bjourne (that lookes like bourne with a j in it)! Just kidding...
http://www.research.att.com/~bs/homepage.html

ta0kira
 
Old 05-16-2005, 08:44 PM   #9
sasho
Member
 
Registered: Jan 2005
Distribution: Arch
Posts: 120

Rep: Reputation: 17
Quote:
Originally posted by redhatrosh
Oh yes...I just mixed up!
[/URL]
I was mostly in a joking mood. I hope you took it as such. It is a good title though, and we apreciate the fact that you mentioned it.
 
  


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
Learning C J_K9 Programming 18 09-17-2005 02:17 PM
learning c++ g2axiom Programming 14 12-31-2004 08:57 PM
Learning as I go. Curious LinuxQuestions.org Member Intro 1 09-25-2003 01:07 AM
Learning? slack105 Slackware 3 07-31-2003 01:46 PM
learning how much mb? nakkaya Linux - General 4 02-27-2003 11:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration