Hi Folks,
back in '99 i wrote a programm in C++ ,a Temperature Converter ,since i jsut started it sure wasnt perfect ,since then i didnt had done much ( nothing ) in C/C++ ,so now i start all over again .
Needless to mention i dont have the source code anymore and therefore try to rewrite it .
Now my Problem ........
i cant figure out how to read out a single letter from the keyboard ( and compare if it was hit or not ) ,such as C for celsius for example ,does someone can help me please ??
here some out of my programm i try to accomplished
P.S.: me is using the Dev-C++ compilerCode:#include <iostream.h> #include <stdlib.h> #include <conio.h> // Named constant definitions: const float FRACTION = 1.80; // Main program: void main() { char x; float fahrenheit; // fahrenheit temperature float celsius; // celsius temperature { // program statements follow cout << "Choose between"<<" (C)elsius"<<" or"<<" (F)ahrenheit \n"; cin >> x;
thanks for any help in advance
Hoschi