Quote:
Originally Posted by skp819 View Post
your statement std::cout << "Enter first integer\n"; is wrong. Because the keyword ::
is the scope resolution key word. here is incorrect.
you should remove it from here.
Please dont spread wrong information. First :: is not a keyword it is a scope resolution operator. Second first verify your post with any good C++ compiler, if you dont have access to any then check your code with online C++ compiler from here

http://www.comeaucomputing.com/tryitout/

And here is from latest draft of C++ standard

Section 3.3.5.2

Quote:
A namespace member can also be referred to after the :: scope resolution operator (5.1) applied to the name of its namespace or the name of a namespace which nominates the memberís namespace in a using-directive;
see 3.4.3.2.