max, min function

max, min function

#include <stdio.h>
#include < iostream >
/* 加不加没有妨碍 #include <math.h>
#include “windows.h” */
using namespace std;
int main(){
int a=1;
int b=2;
int x=min(a,b);
printf("%d",x);
}
to sum up
(1) beginning with #include <math.h> runtime error, later adding "windows.h" still incorrect, but some people's code can be achieved, I do not quite understand what wrong.
(2) #include input and output stream header;
the using namespace STD; is a blank namespace.

Guess you like

Origin blog.csdn.net/m0_45128748/article/details/90984640