- 博客(4)
- 资源 (3)
- 收藏
- 关注
转载 C++ 之cin与cout常见问题详解
经常要使用到cin和cout,花了点时间,把常见的问题整理了一下,供记性不好时查阅。 在程序中包含iostream文件将自动创建cin对象和cou对象,即标准输入流和标准输出流。 关于cout : 操作符的默认含义是按位左移操作符,但ostream类重新定义了操作符,将其重载为输出方法。支持C++的所有的基本类型。对于每一种数据类型,C++都提供了operat
2015-07-10 09:19:55 2437
原创 const_cast
:const_cast (expression) 该运算符用来修改类型的const或volatile属性。除了const 或volatile修饰之外, type_id和expression的类型是一样的。 一、常量指针被转化成非常量的指针,并且仍然指向原来的对象; 二、常量引用被转换成非常量的引用,并且仍然指向原来的对象;
2015-07-09 16:33:44 715
原创 1001. A+B Format (20)
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Each input file cont
2015-07-09 14:35:10 731
原创 python-random模块
Python中的random模块用于生成随机数。下面介绍一下random模块中最常用的几个函数。 random.random random.random()用于生成一个0到1的随机符点数: 0 random.uniform random.uniform的函数原型为:random.uniform(a, b),用于生成一个指定范围内的随机符点数,两个参数其中一个是上限,一
2015-07-01 09:29:57 571
python3.4matplotlib
2015-04-12
Python 2.7.9操作手册
2015-04-09
Python 2.7.9 Documentation
2014-12-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人