[I]Hi all ,
Iam trying to add standard c++ header file to my project.Here is my code
#include <iostream>
int main(int argc, char *argv[])
{
MainWindow w;
w.show();
cout << "hello" ;
return a.exec();
}
#include <iostream>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
cout << "hello" ;
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Im adding iostream though i'm getting error.
errors are : 'cout' was not declared in this scope
cout << "hello" ;
^
But when i put the cursor on the include file it is showing the correct path of the iostream standard c++ file /usr/include/c++/4.8/iostream ^
then how to solve error
Bookmarks