LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-11-2009, 06:15 AM   #1
cloud9repo
Member
 
Registered: Oct 2008
Location: Middle TN
Posts: 134

Rep: Reputation: 19
Wanting to Enhance C/C++ Knowledge


OK, I'm a little familiar with C/C++. I've looked into the IDE's and the gcc compilers, but I must admit I'm not going to program professionally, and don't want to dedicate half my day for the next so many months getting back up to speed.

So, the question is, is there a book (I'm nostalgic) that covers the languages so that I can re-familiarize myself with the intricacies of these languages.

Nothing ground-breaking, or monetary, mind you. I just do it as a hobby.
 
Old 02-11-2009, 06:28 AM   #2
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
One of the best book about C i ever read was Kernighan, B. W., Ritchie, D. M.:C Programming Language
as for c++ i used mostly online manuals and tutorials
 
Old 02-11-2009, 06:50 AM   #3
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
http://www.cprogramming.com/
 
Old 02-11-2009, 12:22 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Free online, good author: Thinking in C++
--- rod.
 
Old 02-11-2009, 12:38 PM   #5
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by theNbomr View Post
Free online, good author: Thinking in C++
--- rod.
Agreed.
 
Old 02-11-2009, 02:37 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
This is also a reasonably good reference:
http://www.cplusplus.com/reference/clibrary/

Or there are many books available here:
http://www.freeprogrammingresources.com/cppbooks.html
 
Old 02-11-2009, 04:17 PM   #7
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Look here, also:
http://www.sgi.com/tech/stl/table_of_contents.html

I work best with a hands-on goal in mind; therefore, I learn best when I set a somewhat arbitrary objective (e.g. create a binary tree,) then research everything incidental to creating it. Usually one thing leads to another and I find that I've learned much more than was required to reach my original goal.
ta0kira
 
Old 02-11-2009, 05:57 PM   #8
cloud9repo
Member
 
Registered: Oct 2008
Location: Middle TN
Posts: 134

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by theNbomr View Post
Free online, good author: Thinking in C++
--- rod.
I actually bought the book, and thought it was poorly organized. Too repetitive.
 
Old 02-11-2009, 06:15 PM   #9
cloud9repo
Member
 
Registered: Oct 2008
Location: Middle TN
Posts: 134

Original Poster
Rep: Reputation: 19
I think I'll try:

http://www.target.com/dp/0072228970/...8&pf_rd_t=5101

"C++ from the Ground Up, Third Edition", by Herbert Schildt.

I have a couple of his books, and he's a good author. Well-written.
 
Old 02-12-2009, 03:46 AM   #10
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Firstly, you'd better choose between C and C++, as they're totally different.
Then if you choose C:
-For sure the bible is K&R as pointed by millgates, be sure to take the last edition.
-"Expert C programming" (Van der Linden): really interesting and fun to read.
-"Safer C" (Les Hatton): after having reading this one, you won't ever do anything else than C, (and you'll be right), take a look to his web-site too, many interesting papers.
-"Object Oriented Programming in ANSI C" (http://www.planetpdf.com/codecuts/pdfs/ooc.pdf), after this one, you'll ask yourself why is there any other languages for serious programming...
 
Old 02-12-2009, 04:33 AM   #11
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by cloud9repo View Post
OK, I'm a little familiar with C/C++. I've looked into the IDE's and the gcc compilers, but I must admit I'm not going to program professionally, and don't want to dedicate half my day for the next so many months getting back up to speed.

So, the question is, is there a book (I'm nostalgic) that covers the languages so that I can re-familiarize myself with the intricacies of these languages.

Nothing ground-breaking, or monetary, mind you. I just do it as a hobby.
Best way to enchance knowledge is to do few projects in those languages.
You forget 90% of what you read in the book unless you apply this knowledge to some interesting problem.

Last edited by ErV; 02-12-2009 at 05:57 AM.
 
Old 02-12-2009, 05:26 AM   #12
cloud9repo
Member
 
Registered: Oct 2008
Location: Middle TN
Posts: 134

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by jf.argentino View Post
Firstly, you'd better choose between C and C++, as they're totally different.
Then if you choose C:
-For sure the bible is K&R as pointed by millgates, be sure to take the last edition.
-"Expert C programming" (Van der Linden): really interesting and fun to read.
-"Safer C" (Les Hatton): after having reading this one, you won't ever do anything else than C, (and you'll be right), take a look to his web-site too, many interesting papers.
-"Object Oriented Programming in ANSI C" (http://www.planetpdf.com/codecuts/pdfs/ooc.pdf), after this one, you'll ask yourself why is there any other languages for serious programming...
As stated, I've programmed a little. Know the main difference is classes in C++, and lower-level function handling of C.

C is great for addition to Assembly, which I also know. It can handle all of the data flow, and fangled user interface; whereas your assembly program can chug away at whatever bus level operations you are conducting.
 
Old 02-12-2009, 05:30 AM   #13
cloud9repo
Member
 
Registered: Oct 2008
Location: Middle TN
Posts: 134

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by ErV View Post
Best way to enchance knowledge is to do few projects in those languages.
You forgot 90% of what you read in the book unless you apply this knowledge to some interesting problem.
My main concern is relearning data handlers and function types. As, since I trained myself in these languages, we've made a slight jump to 64-bit computing. And, the addressable memory space has increased somewhat. From around 2GB, on out to 16GB on a std. desktop.
And graphical elements. I might as well start over. Function calls when I was programming consisted of programming your own virtual machine to utilize standard libraries. Try that these days!. Heck, the GPU on a good video card is more powerful than the Pentium II @ 850MHz I was programming on.
 
Old 02-13-2009, 09:15 AM   #14
benz
LQ Newbie
 
Registered: Jul 2006
Location: Guadalajara, Mexico
Distribution: Linux From Scratch, Fedora
Posts: 12

Rep: Reputation: 1
OOP would also be useful

If you're going to use C++ I may suggest you to also learn some theory of Object Oriented Programming.

Sometimes it's confusing to start seeing concepts such as "class", "object", "instance" when you're done learning the syntax of C++. And Classes and Objects are the "improvement" of C++ over C.

Good luck

Last edited by benz; 02-13-2009 at 09:38 AM.
 
Old 02-13-2009, 11:09 AM   #15
kidicarus
Member
 
Registered: Aug 2003
Distribution: Debian Sid
Posts: 93

Rep: Reputation: 15
C++ Primer Plus by Prata is a really good book, the fourth or fifth edition. The explanation of the concepts are really clear and the book has a lot of sample code. If you're just reviewing maybe only online sites and examples will help, but the creator of C++ recommends that you be familiar with the concepts: "You'll need a textbook for learning C++. This is the case even when your implementation comes with ample on-line documentation. The reason is that language and library documentation together with sample code are not good teachers of concepts. Typically such sources are silent about why things are the way they are and what benefits you can expect (and which you shouldn't expect) from a technique. Focus on concepts and techniques rather than language-technical details."
http://www.research.att.com/~bs/bs_f...l#how-to-start

There is another "Primer" that's just called "C++ Primer" (no plus). It's also a good book although a bit more complicated, and the editions before the fourth are nearly unreadable.
 
  


Reply



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
How to enhance responsiveness? Uqbar Linux - Desktop 8 09-05-2007 09:52 AM
LXer: Ibm to Enhance Open Source Knowledge Discovery LXer Syndicated Linux News 0 01-24-2006 11:47 AM
10 Extensions to Enhance Firefox phlyersphan Linux - News 16 03-01-2005 12:40 PM
how to enhance video performance taoweijia Linux - General 1 01-07-2004 12:13 PM
Enhance Performance? JHuizingh Linux - General 2 06-10-2001 03:08 PM

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

All times are GMT -5. The time now is 10:15 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