![]() |
#2
烟雾中的迷茫2011-09-04 21:43
|
#include<iostream>
typedef float DataType
DataType Max3(DataType x1,DataType x2)
{
if(x1>=x2)return x1;
else return x2;
}
DataType main()
{
DataType t1=5.1,t2=8.8,max;
max=Max3(t1,t2);
cout<<"Max="<<max<<endl;
}
VS2010报错cout,endl未定义,不知道哪里错了。求教!