|
-
February 8th, 2009, 01:39 PM
#1
Converting command line to GUI
Im trying to convert a code supplied by my lecturer to a code i can use in borland c++ compiler 6.
#include <iostream>
int main()
{
Double c ;
std::cout << "Enter Celcius";
std::cin >> c;
Double f = 9 * c / 5 + 32;
std::cout <<"Fahrenheit = " << f;
return 0;
}
I have created the gui with an 1 input box and 1 out put box the theory is to input Celcius in the inputbox and click run then the output box will display the Fahrenheit value.
any help would be most appreciated.
additionally if i've missed anything out or need to supply more details just say.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|