![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++编程相关的语法
文章平均质量分 65
HAIDAYINGJIE
这个作者很懒,什么都没留下…
展开
-
const用法
const用法详解面向对象是C++的重要特性. 但是c++在c的基础上新增加的几点优化也是很耀眼的就const直接可以取代c中的#define以下几点很重要,学不好后果也也很严重const1. 限定符声明变量只能被读 const int i=5; int j=0; ... i=j; //非法,导致编译错误 j=i; /转载 2013-08-28 15:39:00 · 488 阅读 · 0 评论 -
std::nth_element
function templatestd::nth_elementdefault (1)template void nth_element (RandomAccessIterator first, RandomAccessIterator nth, RandomAccessIterator last);转载 2013-09-09 10:39:42 · 795 阅读 · 0 评论 -
double ceil(double x);
函数名: ceil用 法: double ceil(double x);功 能: 返回大于或者等于指定表达式的最小整数头文件:math.h#include stdio.h>#include int main(void){double number = 123.54;double down, up;down = fl转载 2013-09-03 09:33:11 · 1077 阅读 · 0 评论