I have just started learning C++ and wrote my first C++ Hello World program.
1 2 3 4 5 6 7
#include <iostream>
int main ()
{
usingnamespace std;
cout<< "Hello World"<<end1;
return 0;
}
I am using codeblocks and it shows the following errors:
1. In function 'int main()':" which is not an error but still why is it shown"
2. 'end1' was not declared in this scope.
Now I searched on web and people said that use "std::" instead of 'using namespace std' and replacing '\n"' with 'end1'. What is the problem with end1 and why most books like C++ Primer Plus 6 or Thinking in C++ have yet this code written in their books. I read the C++ Programming Language by Bjarne Stroustrup but the stuff was too professional that it can't be used as a reference and beginnning guide can you tell me any book that uses the present standard form of C++.