码迷,mamicode.com
首页 >  
搜索关键字:c primer plus 第五章 编程练习    ( 7061个结果
i++与++i作为左值
#include using namespace std; int main() {  int i = 9;  //i++ = 10;   ++i = 10;  return 0; } /* i++ 不可以作为左值; ++i 可以作为左值。 C++primer 中关于左值右值的说法:  变量和文字常量都有存储区,并且有相关的类型。区别在于变量是可寻址的(address...
分类:其他好文   时间:2014-11-16 17:24:58    阅读次数:146
A problem is easy
描述When Teddy was a child , he was always thinking about some simple math problems ,such as “What it’s 1 cup of water plus 1 pile of dough ..” , “100 y...
分类:其他好文   时间:2014-11-15 06:32:43    阅读次数:127
[LeetCode] Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-11-15 01:20:40    阅读次数:134
两个小时写了一个加法计算器
第一次进行WPF开发。。。 class Number { private string str_buffer = null; private decimal dec_buffer = 0m; public void plus() { dec_buffer = Convert.ToDecimal(st...
分类:其他好文   时间:2014-11-14 21:04:26    阅读次数:206
编程练习--简单实用的选项卡切换效果
有网友私信我,说我前几篇写编程练习的例子让他们感觉我写代码的方式和他们不一样,让他们很受启发,希望我多写一些这样的例子。他们帮我总结了一下,主要表现在以下三个方面:1. 代码外观整洁清爽。2.喜欢用对象方式编写。3.喜欢用原生javascript。我非常认同上面三点,事实上我也是坚持这么做的。第1点...
分类:其他好文   时间:2014-11-14 21:00:35    阅读次数:256
ORA-12520错误解决一则
问题描述: 今天突然发现连接数据库时报错,用pl/sql dev连接数据时,有时能连接上,有时连接时报: ORA-12520: TNS: 监听程序无法找到需要的服务器类型的可用句柄   通过服务器登录数据库,报下面的报连接数错误:   [oracle@dbserver22 ~]$ sqlplus"/as sysdba"   SQL*Plus: Release 11.2.0.3.0P...
分类:其他好文   时间:2014-11-14 12:39:25    阅读次数:129
Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-11-14 12:18:20    阅读次数:139
iOS App Icon图标 尺寸规范
Commit to AppStore:1024*1024//for App IconIcon-60@3x.png:180*180 //iPhone 6 Plus (@3x)Icon-60@2x.png:120*120 //iPhone 6 and iPhone 5 (@2x)Icon-76@2x.p...
分类:移动开发   时间:2014-11-14 10:41:55    阅读次数:182
iOS开发中的单元测试(三)——URLManager中的测试用例解析
本文转载至http://www.cocoachina.com/cms/plus/view.php?aid=8088此前,我们在《iOS开发中的单元测试(一)&(二)》中介绍了从使用者的角度对比当下比较流行的两款单元测试框架OCUnit和GHUnit,这篇文章中我们将介绍一款导航控件URLManage...
分类:移动开发   时间:2014-11-14 00:05:18    阅读次数:348
C++避免内存泄漏的一种技巧
C++ Primer 4th中在section 13.5中的U_Ptr就是一种实用的例子通过计数的方式,并提供自己的抽象类型的Pointer,从而实现内存管理。在一定的范围内还是非常有效的,比如说在写某个模块的时候,模块内部可以采用这种方法避免发生memory leak这里作为一个备忘,就不写详细的...
分类:编程语言   时间:2014-11-13 20:19:08    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!