完整程序: ----maxss.c---- #include "maxss.h" int maxss(int a,int b) { return (a>b?a:b); }
----myTest.c---- #include <stdio.h> #include "maxss.h" main() { int x,y,maxx; printf("Input x and y:\n"); scanf("%d,%d",&x,&y); maxx = maxss(x,y); printf("the max is: %d.",maxx); }