局部变量和函数实参

#include<iostream>
using namespace std;
float convert(float);
void main()
{
float tempfer,tempcel;
cout<<"输入";
cin>>tempfer;
tempcel=convert(tempfer);
cout<<"输出"
 <<tempcel;
cout<<"hello world";
}
float convert(float tempfer)
{

 float tempcel;
 tempcel=((tempfer-32)*5)/9;
 return tempcel;


}

posted @ 2008-11-05 16:35  雨城  阅读(328)  评论(0编辑  收藏  举报