Answer» Hi there,
As I'm new to C++ I could not able to solve this follwing small probelm.
#INCLUDE
int main() { cout << "Welcome to the wonderful world of C++!!!\n"; return 0; }
I saved this FILE as testing.c and tired to complied and run it, but it showed twe error messages "UNABLE to open include file 'iostream'" and "undefined symbol 'cout' in function main<>"
Then I saved as testing.cpp that's also shows the same error msgs.
I'm using turbo C++ VERSION 2
It would be more appreciate if anyone give me the solution for my problemYou should write #include or #include using namespace std;
check it out. Unless you're writing backwards-compatible code, you don't need to use iostream.h. Use Tripti's second solution.Turbo C++ 2.0 is a complete FOSSIL, "namespace" wasn't even a keyword back then. You will likely need to use the #include version. You should consider updating your compiler to something more recent (if at all possible).#include
using namespace std;
int main() { cout << "Welcome to the wonderful world of C++!!!\n"; getchar(); }
|