c++知识点
文章平均质量分 77
ccDLlyy
不忘初心,方得始终
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++,全局变量,局部变量,静态全局变量,静态局部变量
C++变量根据定义位置的不同,具有不同的作用域,作用域可分为6种:全局作用域,局部作用域,语句作用域,类作用域,命名作用域和文件作用域。 从作用域看: 全局变量具有全局作用域。全局变量只需在一个源文件中定义,就可以作用于所有的源文件。当然,其他不包括全局变量定义的源文件需要用extern关键字再次声明这个全局变量。 静态局部变量具有局部作用域。它只被初始化一次,自从第一次初始化直转载 2016-07-31 21:13:03 · 1211 阅读 · 0 评论 -
C++11中新特性之:unordered_map
C++11中新特性之:unordered_map 时间:2015-03-09 22:17:42 阅读:3985 评论:0 收藏:0 [点我收藏+] 标签:des class com 使用 http si 数据 it la unordered_map和map类似,都是存储的key-value的值,转载 2016-11-21 21:52:29 · 1120 阅读 · 0 评论 -
PAT 1118 Birds in Forest
1118. Birds in Forest (25) Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help原创 2017-02-22 12:26:26 · 470 阅读 · 0 评论 -
C++ 常用类
1.string 成员函数 编辑 (constructor) 构建字符串对象 (构造函数成员) operator= 字符串赋值 (公有成员函数) 以下全为公有成员函数 迭代器 编辑 begin 返回指向字符串开始处的迭代器原创 2017-02-22 09:20:59 · 1273 阅读 · 0 评论 -
C++ iomanip
C++的cout,cin等为ios类的派生类,可进行格式化输入输出 一.用到的ios类中的几个静态常量: left,right,dec,oct,hex,showbase,showpoint,showpos,scientific,fixed,uppercase,lowercase left 左对齐 right 右对齐 dec 置基数为10 相当于"%d" hex 置基数为16 相当于"%原创 2017-05-18 20:03:30 · 1929 阅读 · 0 评论 -
C++常用函数
sort函数: 头文件 #include 原型 template void sort( RandomIt first, RandomIt last ); (1) template void sort( RandomIt first,原创 2016-11-20 23:01:41 · 642 阅读 · 0 评论 -
C++ STL(竞赛常用部分)
haha原创 2016-11-21 21:51:48 · 3385 阅读 · 0 评论
分享