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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-06-2004, 12:46 AM
|
#1
|
|
Member
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107
Rep:
|
what's a good beginners C or C++ book
What's a good book for a beginner trying to learn C or C++, preferably one more oriented and focused around linux.
|
|
|
|
12-06-2004, 01:08 AM
|
#2
|
|
Member
Registered: Sep 2004
Posts: 36
Rep:
|
Shaum Series is a good book I feel .
|
|
|
|
12-06-2004, 05:56 AM
|
#3
|
|
Member
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475
Rep:
|
|
|
|
|
12-06-2004, 07:30 AM
|
#4
|
|
Member
Registered: Jan 2002
Location: Cleveland
Distribution: Gentoo and umm... Gentoo
Posts: 64
Rep:
|
Patrick Henry Winston's, On to C and On to C++.
These books are incredible and don't weigh in at 1000 pages.
|
|
|
|
12-06-2004, 11:31 AM
|
#5
|
|
Member
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107
Original Poster
Rep:
|
which, C or C++, would be worth learning more in your opinion?
|
|
|
|
12-06-2004, 11:39 AM
|
#6
|
|
Member
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Rep:
|
Well, I believe that C# is better to learn. But im still a newbie, so ya. But heres a book I DON'T! recommend, its the "C++ for Dummies", it was talking to me as if I could read the guys mind. He would throw words in there that I would have to look up to figure out wtf he was talking about. I give it 3 thumbs down.
|
|
|
|
12-06-2004, 12:07 PM
|
#7
|
|
Member
Registered: Jan 2002
Location: Cleveland
Distribution: Gentoo and umm... Gentoo
Posts: 64
Rep:
|
I would stay away from C# if you do in fact want something thats geared more towards Linux application development. (This of course is changing with the evolution of Mono and DotGNU but that's another thread)
I recommend starting with C and then moving to C++. That way you get to experience the richness of the C family in it's historical context.
Obviously the most important factor is which interests _you_ the most.
|
|
|
|
12-09-2004, 05:48 PM
|
#8
|
|
Member
Registered: Feb 2004
Location: Boston
Distribution: Kubuntu 22.04
Posts: 101
Rep:
|
I'm actually selling a book on ebay "Teach yourself C++ for Linux in 21 Days" from Sams publishing. I think it's a great book for beginners. It talks alot about the linux programming environment, linux editors, shell programming, as well as teaching you C++ from the beginning. At the end there's a chapter on system programming and a chapter on GUI programming with Gnome and Kde. I enjoyed reading it.
Jim
Last edited by xucaen; 12-09-2004 at 09:42 PM.
|
|
|
|
12-10-2004, 12:32 AM
|
#9
|
|
Member
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740
Rep:
|
C How to Program, Deitel
Great book, and also contains a hunk on C++ and Java.
Got a lot of examples, great content/explainations.
|
|
|
|
12-10-2004, 02:47 AM
|
#10
|
|
Senior Member
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078
Rep: 
|
I learned C++ from http://cplusplus.com/doc/tutorial/ , by messing around testing what could and couldn't be done, and by asking questions on message boards. There is more than enough info on the internet to learn either without paying anything. The only reason I would buy a book is for the C++ Standard Template Library, which contains all of the standard C++ classes. Those are a bit cryptic sometimes in their use and their naming. Even that has a decent site, though, which is http://www.sgi.com/tech/stl/ . So once you have a good handle on the use and sematics of C++, start learning about the STL from the other site. I would recommend C++ because almost everything in C can also be done in C++. I really think books and classes make things more formal and difficult than they need to be. Of course, I am one who never paid attention in class and went home and learned everything on my own, so you need to be able to teach yourself stuff.
ta0kira
[EDIT]
C/C++ are platform independent, therefore learning the basics will not involve any particular platform. Once you learn either, you will need to learn about implementing specific libraries for Linux. I would buy a book for that, but I don't know of one either.
ta0kira
Last edited by ta0kira; 12-10-2004 at 05:58 AM.
|
|
|
|
12-10-2004, 03:22 PM
|
#11
|
|
Member
Registered: May 2003
Posts: 80
Rep:
|
do you know of any ebooks on C??
|
|
|
|
12-12-2004, 10:19 AM
|
#12
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
Even though it's not Linux specific, the book that I'd recommend is Ivor Horton's Beginning ANSI C++: The Complete Language. I find it really well written; it's very clear and easy to understand (for me at least). I've also got Sams Teach Yourself C++ for Linux in 21 Days, but I found that more difficult than Horton's book.
|
|
|
|
12-13-2004, 05:47 AM
|
#13
|
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
learn C.
anyway C++ goes on from C.
C++ (in my opinion) is horrible, UGLY, big and complex.
C is small and perfectly (well nearlY) formed.
regards billy,
|
|
|
|
12-13-2004, 06:15 AM
|
#14
|
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
If you will be programming KDE or Qt applications, then you will probably write C++ code. If you are interested in studying kernel code or writing drivers, C code is what is used in this case.
|
|
|
|
01-30-2005, 11:32 AM
|
#15
|
|
Member
Registered: Apr 2004
Posts: 354
Rep:
|
i had just baught absulute beginner's for c second edition by greg perry and i gotta tell you its awsome if you never learned c before
|
|
|
|
All times are GMT -5. The time now is 06:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|