LinuxQuestions.org
Visit Jeremy's Blog.
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 07-02-2003, 08:20 AM   #1
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
Learning C++


What is a good website, and/or book to use to learn C++?
Currently i'm going through the tutorial at www.cplusplus.com, but it seems to only cover the basics.
Also, what's a good reference book to use once I learn C++?
 
Old 07-02-2003, 09:38 AM   #2
nakkaya
Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
www.cprogramming.com
 
Old 07-02-2003, 09:39 AM   #3
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
There is no complete solution for C++ at this time. It's better to learn C, you'll have all the power you could ever dream of on any modern platform. Standard C++ is probably only for compilers to write code in because it is too sophisticated for humans. I'm totally serious, very few people have the time and money to learn Standard C++. If you were extremely stubborn you could look at the book reviews at < www.accu.org >. I dislike Francis Glassborow however but in spite of this most of the reviews appear to be...well...correct.
 
Old 07-02-2003, 09:41 AM   #4
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Quote:
Originally posted by nakkaya
www.cprogramming.com
This is very poor advice. Do not use this forum. A much better forum is the link on www.cplusplus.com to comp.lang.c++. The website < www.cprogramming.com > is littered with turkeys. I am giving you the best advice, just learn C...at this time.
 
Old 07-02-2003, 09:51 AM   #5
nakkaya
Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
Quote:
Originally posted by GtkUser
There is no complete solution for C++ at this time. It's better to learn C, you'll have all the power you could ever dream of on any modern platform.
C is supported under C++ and c doesnt give you anything c++ cant give

Quote:

Standard C++ is probably only for compilers to write code in because it is too sophisticated for humans.
you kidding me have you ever looked at the c code and then a c++ code c++ is written for easy management fast development re use code to prevent spagetti code while still providing the power c has given to users

Quote:

I'm totally serious, very few people have the time and money to learn Standard C++.
c++ is allways more readable then c since it is higher than c.
c++ is one of the most used languages in the world
also you need less time while coding in c++(cause you can re use your code create your own class es override functions and operator s theses are some of the powerfull solution that c can not provide you) and there for less money it is easier to learn cause sytax is more clear than c

Last edited by nakkaya; 07-02-2003 at 10:04 AM.
 
Old 07-02-2003, 09:57 AM   #6
nakkaya
Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
Quote:
[i]Originally posted by pilot1
What is a good website, and/or book to use to learn C++?
Currently i'm going through the tutorial at www.cplusplus.com, but it seems to only cover the basics.
Also, what's a good reference book to use once I learn C++?
as you can see he wanted a tutorial


and then i posted the site you posted the following

Quote:
Originally posted by GtkUser
This is very poor advice. Do not use this forum. A much better forum is the link on www.cplusplus.com to comp.lang.c++. The website < www.cprogramming.com > is littered with turkeys. I am giving you the best advice, just learn C...at this time.
and since www.cprogramming.com has tutorials on it i gave adress. i did not said anything about forum mate. next time read it all
 
Old 07-02-2003, 11:56 AM   #7
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Thanks for your input.
It seems, at least to me, that C++ is easier to learn than C. But maybe i'm mistaken.

They both look pretty similar.
Would it be hard to learn C after I know C++?
 
Old 07-02-2003, 12:29 PM   #8
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
i consider c++ to be a (large)superset of c so if you know c++ then you automatically know c. c++ has a lot more to it, and to learn the language fully is a lot harder than C because of the whole object orientated thing. but c++ is easier for the beginner due to things like the std::string class, also people who learn c++ before/with c tend to skip over the hardware/low-level abilities of the language. you can probably get away with going straight into c++ but i would reccomend learning c first.

edit: re your first post: i think the tutorial at www.cplusplus.com covers the majority of the language, not just the simple stuff, if your thinking about graphics etc thats NOT part of c++ its in libraries provided by third parties.

edit: i dont think www.cprogramming.com is very good either

Last edited by kev82; 07-02-2003 at 12:36 PM.
 
Old 07-02-2003, 01:58 PM   #9
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
I'm 15, and it seems to me that the easiest way to learn to program would be to learn C++.

One of the main reasons I chose it is because I can look at the source of my favorite programs (almost all are written in C++), and see how they work, and maybe even submit bug fixes to the mantainer.

Also, from what i've seen of C++ it doesn't seem that hard to learn, and it would probably be the most useful language for me to learn.

I'm not very far along in the cplusplus.com tutorial (section 2.2), and they may answer this question later, but i'll ask anyways.

When you use the #include <file.h> command/definition/whatever, file.h provides additional commands to use in your program, right? Where can I learn what commands a file provides, and how to use them?
 
  


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


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