Tuesday, October 19, 2010

CS201 - Avoiding Warning Message at compile time

Dear students,

At times when you compile a program you see a warning message at the end of compiler screen. It is only a warning message and not an error so it has not as such critical impact on your program. However in order to avoid this warning message, You are recommended to use(using namespace std;)statement at the start of the program.

Example:
using namespace std; /* It tells the compiler to treat the names in the standard library, a very important part of the C++ language definition */
#include
#include // for getch()
main()

{
cout<<"Welcome to VUsolutions"<
getche();

}

No comments:

Post a Comment