sana.pari
04-24-2011, 07:00 PM
A-O-A sir i have made my 1st program of typing a text "Welcome to Virtual University" same as you told but when i compile it, it gives a message in line 4 where i use cout; in function 'int main()': 'cout'undeclared (first use this function) (each undeclared identifier is reported only once for each function it appears in)
Support
04-24-2011, 07:02 PM
Dear Student,
You need to write the statement using namespace std; at the start of your program. After writing this line, you code should look like the one given below.
using namespace std;
#include <iostream>
main()
{
cout<<"Welcome to Virtual University!";
system("pause");
}
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.