Hello, picked up one of the recommened books C++ Without Fear and ran into a problem with one of the exercises.
This is such a basic program I admit to a little embarrassment about asking for your advice as I am sure the solution is simple. None the less I am not finding one... any help is appreicated.
So, specifically when I compile (btw using the RHIDE compiler that came with the book) it stops on line (4), which is the "int main()" line, when I attempt to run the program it prints "Must specify file system"Code:#include <iostream> using namespace std; int main() { // Declare floating-pt variables double ctemp, ftemp; // Prompt and input value of ctemp (Celsius Temp). cout << "Input a Celcius temperature and press ENTER: "; cin >> ctemp; // Calculate ftemp (Fahrenheit Temp) and output value. ftemp = (ctemp * 1.8) + 32; cout << "Fahrenheit temperature is: " << ftemp; return 0; }
So... I am thinking it is something in the computer settings or something, since the code itself seems correct,(according to the book). mayhaps I overlooked something?
This PC is running XP pro and I am working this through the MS-DOS command prompt window.
again thanks for your time...



LinkBack URL
About LinkBacks



