Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Trying to learn c++, but it's not going so well...
  
User name:
Password:
Reply:
 

UserPost
Timmy Turner
Posts: 5/24
Thanks euclid.... that worked
Euclid
Posts: 101/193
you should only need to put
#include < iostream>
for it to work. (without the space)

At least for gcc anyway.
Monsty
Posts: 5/6
I'm assuming Dev-C++ comes with all of the standard library headers and everything...so my guess is your directories are not set up correctly. Does Dev-C++ have its own IDE? You need to define somewhere for the compiler to look for those header files. I'm pretty sure that's the current problem.

I've never used an IDE-less compiler, so I couldn't help you with developing a makefile or similar required file(or would it just be environment variables?), if that's the case.
Timmy Turner
Posts: 2/24
While trying to learn c++ on bloodsheds dev-c++, and when i type in this:

#include

using namespace std;

int main (int argc, char *argv[])
{
cout << "Hello World!" << endl;
cout << "Press ENTER to continue..." << endl;
cin.get();
return 0;
}

It says it can't find iostream.h... What's wrong?
Acmlm's Board - I2 Archive - Programming - Trying to learn c++, but it's not going so well...


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.009 seconds.