I have the same problem to im using a borland complier and it seem like something is wrong...I tried the extension .cpp and the others can i get some help plz....
I have the same problem to im using a borland complier and it seem like something is wrong...I tried the extension .cpp and the others can i get some help plz....
Two points-
With your code the way it is I think you should use std and also leave spaces between things like the redirection operator and your cout.
When you use std, either use-
Code:#include <iostream> using namespace std; //includes everything, cout, cin, endl int main() { cout << "Hello."; return 0; }orCode:#include <iostream> int main() { std::cout << "Hello."; return 0; }
Code:#include <iostream> using std::cout //only allows to not use std::cout, doesn't include std::cin or std::endl int main() { cout << "Hello."; return 0; }
you need a ; for this:
I think munkey had a typo.Code:using std::cout;
Also, leave the .h out of iostream. you will get warnings with newer compilers that it is antiquated.
like xterria said, try using Dev-C++. It uses the mingw compiler (which can be found at www.mingw.org). Dev-C++ is also an IDE, so you do not need to use command line.
I prefer Quincy2000 right now for an IDE (www.alstevens.com/quincy.html). Both are free, see which one you like. There are also other IDEs out there if you do not like either. (Just throwing out some suggestions for IDEs)
ok thanx imma try the dev-C++ i just d/l it...