int m_m = 1
int m_mm = 1000;
double m_km = 0.001;
int m_cm 100;
//Local Variables
string km ("km");
string cm ("cm");
string mm ("mm");
string m ("m");
double value;
string unit;
string converter;
//Code
cout << "Enter distance value: ";
cin >> value;
cout << "Enter unit: ";
cin >> unit;
cout << "Enter unit to convert to: ";
system("PAUSE");
return EXIT_SUCCESS;
}
The error I get is in line 31: main.cpp expected `,' or `;' before "int"
I have tried change all the ints to doubles but I just get this error:
Line 31 main.cpp expected `,' or `;' before "double"
I don't know what's wrong with this.
Any help is greatly appreciated!