简单的C++编程 忘 高手指点

来源:百度知道 编辑:UC知道 时间:2024/06/15 01:46:50
#include<iostream.h>
void main()
{
float a,b;
cout<<"enter two float number:"<<endl;
cin>>a>>b;
cout<<a>b?b:a<<endl;
int c;
double d;
cout<<"enter c="<<endl;
cin>>c;
cout<<"enter d="<<endl;
cin>>d;
cout<<c>d?c:d<<endl;
typedef double WENDU;
WENDU C,F;
cout<<"enter WENDU F="<<endl;
cin>>F>>endl;
cout<<"C="<<(F-32)*5/9<<endl;
typedef double GL,YL;
cout<<"enter GL number="<<endl;
cin>>X>>endl;
cout<<"YL number="<<X*1.60934<<endl;
}
定义了还是不行

程序初步看起来没有什么问题
有错误吗
没有什么好点评的
低调

void main()
{
float a,b;
cout<<"enter two float number:"<<endl;
cin>>a>>b;
cout<<a>b?b:a<<endl;
int c;
double d;
cout<<"enter c="<<endl;
cin>>c;
cout<<"enter d="<<endl;
cin>>d;
cout<<c>d?c:d<<endl;
typedef double WENDU;
WENDU C,F;
cout<<"enter WENDU F="<<endl;
cin>>F;
cout<<"C="<<(F-32)*5/9<<endl;
typedef double GL,YL;
cout<<"enter GL number="<<endl;
GL X;
cin>>X;
cout<<"YL number="<<X*1.60934<<endl;
}

X没有定义