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 stdstatement at the start of the program
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 <iostream> #include <conio.h> // for getch()
main() { cout<<"Welcome to Virtual University of Pakistan"<<endl; getche(); }

Sponsored Links