正在加载图片...
③ 函数调用 #include <iostream.h> 函数声明 int max(int a,int b); mainO) { int x,y; 函数调用 cin >x>>y; cout <max(x +5,y-3); 3 int max(int a,int b) 函数定义 if (a b)return(a);else return(b); 3 LoCcS函数调用 #include <iostream.h> int max(int a, int b); main() { int x, y; cin >> x >> y; cout << max(x + 5, y - 3); } int max(int a, int b) { if (a > b) return(a); else return(b); } 函数声明 函数调用 函数定义
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有