No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
i have this small program that im using to test some things. i have a visual c++ at school but its like 5 years old or whatever and i got visuall c++ 2008 expess at home and i need to know how to get this program to get the vector … |
|
Re:
i have a question, why can't i do this, there are three errors and i don't know what they mean [code] #include<iostream.h> float celsius_to_fahrenheit(float); int main() { float fahrenheit; float celsius=22.5; fahrenheit=celsius_to_fahrenheit(celsius); cout<<celsius<<"C="<<fahrenheit<<"F\n"; return 0; } celsius_to_fahrenheit(float celsius) { return(celsius*(9.0/5.0)+32.0); } [/code] |