标准的 C++ 由三个重要部分组成:
核心语言,提供了所有构件块,包括变量、数据类型和常量,等等。
C++ 标准库,提供了大量的函数,用于操作文件、字符串等。
标准模板库(STL),提供了大量的方法,用于操作数据结构等
1 #include <iostream>
2
3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
4 using namespace std;
5 int max(int x,int y){
6 int z;
7 if(x>y)z=x;
8 else z=y;
9 return(z);
10 }
11
12 int main(int argc, char** argv) {
13 int a,b,m;
14 cin >>a>>b;
15 m=max(a,b);
16 cout <<"max="<<m<<'\n';
17 return 0;
18 }
转载于:https://www.cnblogs.com/borter/p/9400704.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)