Originally posted by Rampage
When it comes to C++, I know almost close to NOTHING. I'm a Visual Basic guy. (Too bad that VB went extinct.) So I'm like Bobboau a year ago.
I have tried to complete projects in C++, as most ended up in some exacrable (mostly horrible syntax errors that resulted from an undeclared variable or class).
Is there a "Learn C++ in 21 Days" book or such? So far, I have 102+ errors on the Lambda code ALONE!
well you know the basics of programming then.
C/C++ is very memory efficiant. that means that every, what you from VB would know as a Variable has to be specificly declared what kind of type it is. in short, how many bytes it is going to need.
Some types like CHAR cant hold a value greater than 255 because it is a 8 bit type. also chars are projected onto the screen as charachters rather than a plain value. IF we want values we use an INT, that is if we want integers.
If we want a string, we use a socalled array also known as a C-style string.
C style Array
Char mytext[50];
mytext = "i love C++" //error, C needs 50 not 11 chars for this array.
That is quite different from what you know from Visual basic i beleive.
That was three examples of basic types.
The learn C++ in 21 days may skip these explanations. ofcourse there are plenty more basic types.
C++ do ofcourse hold the string type you know from visual basic, but it is much more memory/cpu time hungry than Chars.
start by learning C, maybe go buy a book, And the best ones are exspensive.
Dont buy a C++ for dummies or something, they are crap.
I got a book from the creator of C++. in which the novice as the professional can benefit from reading, that also explains about C, and what is bad in C but good in C++, and vice versa. its a good starting point. A bit intimedating in the start. but once you get the "hang of" C++ its easy.
but it is 44.95US$
If you are interested in this it is published by
Addison-Wesley
The C++ programming Language X-edition
by Bjarne Stroustrup. The creator of C++.
ISBN 0-201-88954-4
X means what ever edition it has reached now.
If you need a book is your call. But it is sure nice to have some kind of reference when in doubt.