面向对象类库

面向对象类库
标准的 C++ 面向对象类库定义了大量支持一些常见操作的类,比如输入/输出 I/O、字符串处理、数值处理。面向对象类库包含以下内容:

标准的 C++ I/O 类
String 类
数值类
STL 容器类
STL 算法
STL 函数对象
STL 迭代器
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 main(int argc, char** argv) {
 6     int a[10];
 7     int i;
 8     for(i=0;i<10;i++)
 9     cin>>a[i];
10     cout<<endl;
11     for(i=0;i<10;i++)
12     cout<<a[i]<<" ";
13     cout <<endl; 
14     return 0;
15 }
原文地址:https://www.cnblogs.com/borter/p/9401385.html