The idea is just to perform the addition from right to left as usual :-)Note that the result may be longer than the originaldigitsby1number (the carry...
分类:
其他好文 时间:
2015-08-11 11:36:32
阅读次数:
102
这章是一个简单的概述,习题内容皆容易,故只贴几个知识点,不贴习题
cin >> a 返回其左操作数,即:cin (istream),只有当遇到EOF或者非法输入(比如该输入int,却输入了一个long long 的大数),输入流才会是false.
EOF 在windows上是Control + z,在Mac OSX or UNIX上是Control + d。
代码风格虽然是多种多样的,但我...
分类:
编程语言 时间:
2015-08-11 10:10:10
阅读次数:
119
2.1 进入C++ 1. C++函数头描述了函数和调用它的函数之间的接口,main函数的函数头描述了main和操作系统之间的接口。 2. C++注释以//打头,C注释包括在函数/**/之间 头文件类型 约定 示例 说明 C++旧式风格 以.h结...
分类:
编程语言 时间:
2015-08-11 08:37:48
阅读次数:
157
Problem description
Samuel W. E. R. Craft is an artist with a growing reputation. Unfortunately, the paintings he sells do not provide him enough money for his daily expenses plus the new suppl...
分类:
其他好文 时间:
2015-08-10 22:27:16
阅读次数:
231
在android开发中,写了一个关于继承Fragment的类时,如果有重载构造函数时,会提示“Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundl...
分类:
其他好文 时间:
2015-08-10 19:50:10
阅读次数:
128
1. 定义const对象
因为常量在定义后就不能被修改,所以在定义时必须进行初始化。
const int bufSize=512;
const int i; // error; i is uninitialized const
2. const 对象默认为文件中的局部变量
我们知道,如果我们在一个文件中定义了一个非const变量,如果我们想在另一个文件中使用这个变量,只需要在使用前添加...
分类:
编程语言 时间:
2015-08-10 12:08:25
阅读次数:
142
1.7之前可使用 live ()$("tbody>tr>td:nth-child(1)").live("click",function(){ var zState; if($(this).find(" .zMore").hasClass("fa-plus")) ...
分类:
其他好文 时间:
2015-08-10 11:58:55
阅读次数:
105
运算符号 + plus? -minus? / slash * arterisk %percent <less than >greater than <=less than equal >=greater than equal http://learnpythonthehardway.org/book/ex3.html...
分类:
编程语言 时间:
2015-08-10 08:19:51
阅读次数:
141
目录:一、前言二、使用普通用户三、自动启动PDB一、前言 最近电脑上安装了oracle 12c数据库,想体验下新特性。安装完后,便像11g一样在dos窗口进行下面的操作:SQL*Plus: Release 12.1.0.2.0 Production on 星期日 8月 9 13:06:33 201....
分类:
数据库 时间:
2015-08-09 15:20:04
阅读次数:
253
Implement a basic calculator to evaluate a simple expression string.
The expression string may contain open ( and closing parentheses ),
the plus + or minus sign -, non-negative integers
and em...
分类:
其他好文 时间:
2015-08-08 15:00:44
阅读次数:
91