%% 练习函数的调用 可以在调试程序中尝试 来观察函数的参数传递
%% 函数的设置 类型 名字 参数(必须要指明类型)
%% void 是无类型的 在函数写的时候不确定类型是可以使用 充当类型
#include "stdafx.h"
#include "iostream"
#include "math.h"
using namespace std;
//int _tmain(int argc, _TCHAR* argv[])
float convert(float F){
float C;
C = (F - 32)*5 /9;
return C;
};
int main()
{
float F;
cout<<"please input the temperature in faherenheit :"<<endl;//华氏度
cin>>F;
cout<<"conver the temperature in celsius"<<endl;//摄氏度
F=convert(F);
cout<<F;
system("pause");
return F;
}