Solved

learn c++

Posted on 1998-11-08
8
256 Views
Last Modified: 2010-04-02
how would i go about leaning c++ when i know very little about programming languages.  i want to learn and go to school after i get a basic ground of the language.
0
Comment
Question by:burny
8 Comments
 
LVL 22

Expert Comment

by:nietod
Comment Utility
I would not recommend C++ for beginners.  There are some C++ books that are for beginners, but I really don't think it is a good idea.

I would start with Pascal or Visual basic at least until you have the basic principles of programiming down..  In the long run, you are likely to learn faster and end up a better programmer in the end
0
 
LVL 10

Expert Comment

by:viktornet
Comment Utility
Try programming Pascal, or get a good book on C....
0
 
LVL 22

Expert Comment

by:nietod
Comment Utility
Actually, I would not recommend C over C++.  It has the same flaws.  They are jokinly described as "providing the programmer with enough rope to shoot himself in the foot" (For our international experts,  That's a mixed up mess of two english idioms.)  The point is that C and C++ have wonderful flexibility that is a great benefit to experienced programmers, but that is a great detriment to beginners.  C has such a fleixble syntax that a novice can make many mistakes that will compile and run but will do something that the programmer did not intend.  Simpler languages, like Pascal have a much simpler syntax that is much more likely to detect errors.
0
 
LVL 1

Accepted Solution

by:
TheGrinch earned 50 total points
Comment Utility
Do not "mess up your head" with C or Pascal. Virtually no one in the commercial world uses either. C++ is the one truw programming langauge in common use today. Visual Basic is there, too, but serves a niche. (My opinion. Others may disagree.)

So... start with C++.

Get a book designed for beginners... I suggest "C++ in 21 Days". Very important: Make sure the book is written for the same version of the C++ compiler that you have. This probably means MS Visual C++ 5.0. Do not try otherwise.

Don't "cheat" -- do every exercise in the book. You'll do fine!

0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 10

Expert Comment

by:viktornet
Comment Utility
I know Pascal somewhat well, and I'm beginner in C++, but I think even though C++ is difficult ot learn it is the best language there is... Sometimes, when programming in Windows, VC++ is not the best way to go.. There are also nice tools as Delphi, but the problem is that it doesn't allow you to do whatever you want with the system.... It usually detects the smallest error, like if you miss a semicilon in specific places...

btw- I said C because it doesn't have all that OOP, ie...classes, objects, membert functions and so on.... Sometimes it's difficult for beginner to learn that... I have experience with Delphi which is an OOP Pascal for Windows, and when I stareted C++ it was quite easy for me to learn the the syntax... The definitions, and everything I know from Pascal....

Cheers,
Viktor
0
 
LVL 22

Expert Comment

by:nietod
Comment Utility
>> said C because it doesn't have all that OOP, ie...classes, objects, membert functions and so on....
Removing them certainly removes a lot of complexity, but those aren't the things that tend to cause the problems for students.

Common problems for students are:
1.  0 referenced arrays
2.  C's weird pointer/array semantics (not the least bit weird to experienced C/C++ programmers, but weird even to advanced programmers who haven't worked in C/C++.
3.   C's NUL terminated strings.  (If there isn't at least one  NUL terminated C string problem on this site on a particular day, then school must be out.)
4.   C's overabundance of operators.  Especialy & and | for && and ||.
5.  Preprocessor problems.  especially with header files and min and max macros.

I swear that the vast majority of beginner questions I answer are on these topics (and probalby a few more).  That is why I think C is bad for beginners.  They should focus on program design issues, not syntax and semantics.
0
 
LVL 10

Expert Comment

by:viktornet
Comment Utility
You're right :)
0
 
LVL 1

Expert Comment

by:willemnel
Comment Utility
There is currently (worldwide) a debate on the suitability of C++ as a first language. At some universities C++ has been introduced as a first language with success. IMHO, it depends a lot on the the individual. If you don't have problems with thinking abstractly (think of you mathematics abilities - can you easily visualize "word problems"?), then go for C++. If you problems with abstract ideas, then go for something like Pacal.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now