如何创建指定大小的数组/字符串
2016-03-13 13:24
330 查看
#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<int> a(10); int b[10]; int *c = new int[10]; char str2[10]; char *str3 = new char[10]; }
相关文章推荐
- 技术路线的思考
- 单元测试——四则运算2
- Hadoop完全分布式集群配置
- Hadoop完全分布式集群配置
- 《linux内核与分析》第三周
- hdoj--1877--又一版 A+B(水题)
- Javascript中各种高度宽度解读
- MBR反汇编
- OJ提交题目中的语言选项里G++与C++的区别
- Vmware虚拟机下三种网络模式配置
- Java 数组实现冒泡排序
- C#基础之继承
- hdoj--1877--又一版 A+B(水题)
- TLS线程局部存储
- 低版本Xcode 出现could not find developer disk image问题
- 关于N-Gram模型
- Guava Collect
- leetcode 287 Find the Duplicate Number
- nyoj--61 传字条(一)(多线程dp)
- linux使用dhclient自动获取IP