Whats wrong with my code? ::sigh::
I am not good with c++ but i did take one class on it and that was enough to see it wasnt for me. I made this project for my work it worked fine in codewarrior but i couldnt compile itno an executable because it was student version. So i came to this forum which I had recieved help when was in my class still to find a free compiler then to download Dev C++. When I pasted the exact same code that worked fine in codewarrior into Dev C++ it wouldnt compile :confused:
Any help would be greatly appreciated,
Charlie
#include <iostream.h>
#include <iomanip.h>
int main ()
{
int rmeters;
float lspeed;
float rtime;
float htime;
cout << endl;
cout << endl;
cout << " Run Time Calculator \n";
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << " Enter the number of meters \n";
cin >> rmeters ;
cout << endl;
cout << " What is the estimated average line speed? \n";
cin >> lspeed;
rtime=rmeters/lspeed;
htime=(rmeters/lspeed)/60;
cout << endl;
cout << endl;
cout << " You have aproximately " << rtime <<" minutes \n";
cout << " or " << htime << "hours of runtime";
cout << endl;
cout << endl;
cout << endl;