[I]Hi all ,
Iam trying to add standard c++ header file to my project.Here is my code
Qt Code:
#include <iostream> int main(int argc, char *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