Hello, this is my first post and I've started to learn C++. I noticed that the book I'm using was published in 1995. Then I started looking at newer tutorials like the famous "Hello World" for beginners.
In the book the code is:
1 2 3 4 5 6
#include <iostream.h>
main () {
cout << "The volume of the box car is ";
coun << 11 * 9 * 40;
coun << endl;
}
And on this website the code was:
1 2 3 4 5 6 7
#include <iostream>
int main()
{
std::cout << "This is a native C++ program." << std::endl;
return 0;
}
I'm beginning to notice differences with the past and current versions of C++. Or am I wrong, are these just different methods of programming in C++? Does it matter if I use an older book on C++?
Thanks for any replys, these questions may make me look stupid, but I'm a noobie to C++.
P.S.
If you need the book's title and author it's On to C++ by Patrick Henry Winston