#include <stdio.h>
#include <algorithm >
int main(){
int x=1,y=2;
int a=min(x,y);
printf("%d",a);
}
#include <stdio.h>
#include <math.h>
int main(){
int x=1,y=2;
int a=min(x,y);
printf("%d",a);
}
#include <stdio.h>
#include <math.h>
int main(){
int x=1,y=2;
printf("%d",min(x,y));
}
三种都不对,求大神解答为什么错了,应该怎么改,感谢各位。
#include "windows.h"
看看
int main(){
int x=1,y=2;
if (x<y)
printf("%d",x);
else
printf("%d",y);
return 0;
}
不妨,不要用函数,朋友
你写的是c程序,不是c++的吧,c++ 一般有
#include <iostream>
using namespace std;
这样,就可以能用max min等