I'm a physics student. I'm not sure if this is the elegant solution
Also does the syntax differ with different versions like C++ Visual studio, which should I learn to become a professional programmer?
Can anyone recommend good, indepth, detailed books on C++. maybe C++ dissected?
thanks SO much!!
#include<iostream>
using namespace std;
int main()
{
string firstname, lastname;
cout << "Enter your first name:";
cin >> firstname;
cout << "Enter your last name:";
cin >> lastname;
cout << "Hello " << firstname ;
cout << " " << lastname<< endl;
return 0;
}
I must admit I just used it for reference when i couldn't find what i needed in the tutorial, I understood the concepts before i used the book, just gave me some different commands from the tutorial so I could use more different things
thanks very much! I mean I have C++ Schaum's which is interesting
so what do books like C++ in 30 days have missing? is there one book that is like the ultimate C++ text?
I don't know of a single "ultimate c++ text". However, once you have learned c++ from any of several good introductions (the tutorial on this site, Patrick Winston's On To C++, etc), I think there is one correct choice for your second book: Effective C++, by Scott Meyers. I found it after years of c++ and most of it was new to me.
You may well be able to learn the syntax of C++ in 30 days, but that doesn't make you a programmer any more than being able to speak a language makes you a novelist.
is there one book that is like the ultimate C++ text?
The closest I've seen to such a thing is ISO/IEC 14882:2003 (supplanted JUST WEEKS AGO by ISO/IEC 14882:2011, the new C++ standard! Yay!). It is the definition of C++. However, being able to read it and understand it requires a significant amount of contextual knowledge and whilst I'd definitely recommend that a beginner sight it and know what it is, it's not the best to learn from and it certainly doesn't teach programming. That said, whenever I have a question about C++, it's where I look for the absolute, unequivocal definition of what C++ is.