ProgrammingThis 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.
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.
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++?
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.
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.
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
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
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.