A 100% C++ Program (according to the latest standards)


Hence I've written the first program (My first C++ program) once again. I've made use of int main as well as the new C++ header style. This is a 100% C++ program. You can make use of new style headers in all the other programs that you have written.

Thus the first program you wrote becomes :
# include <iostream>
using namespace std;
int main( )
{
char letter;
cout << "Enter any letter" ;
cin >>letter;
cout << "The letter you entered is : " <<letter;
return 0;
}
Whatever program you write in future, make sure that you use the new style headers.


Go to the next section on A closer look into namespaces

or Back to Contents page 2.