1. 哪些不可以被重载? . .*2. 成员函数与非成员函数的运算符重载函数区别? 运算符左侧是否是类对象本身.3. a++, ++a 运算 X operator ++ (const X& x); const X& operator ++ (const X& x, int); int 参数作为哑元....
分类:
编程语言 时间:
2014-10-04 12:34:46
阅读次数:
197
代码: #include <stdio.h>
#include <stdlib.h>
int main(void) {
int i;
double d;
char ch;
int counter;
counter = scanf("%i %lf %c", &i, &d, &ch);
printf("The return value of function is %d....
分类:
其他好文 时间:
2014-10-04 12:03:56
阅读次数:
148
##利用Point作为例子 ``` local math = require("math") local Point = {x = 0, y = 0} Point.__index = Point function Point.new(x, y) local self = setmetatable({}, Point) if (type(x) == "table") then f...
分类:
其他好文 时间:
2014-10-04 03:34:16
阅读次数:
168
C++异常当然可以通过try...catch处理,不过没有finally关键词。C++资源的释放可以通过RAII实现。RAII,也称为“资源获取就是初始化”,是c++等编程语言常用的管理资源、避免内存泄露的方法。它保证在任何情况下,使用对象时先构造对象,最后析构对象。Destructors shou...
分类:
编程语言 时间:
2014-10-04 02:08:55
阅读次数:
155
看了很多文章 基本上都是转载党的作品 再查阅各方资料并动手试验的基础上简要总结一下 首先可以使用stat 命令来查询文件的inode信息,其中包括ctime atime mtime 1.文件的容易理解: 文件的 Access time,atime 是在读取文件或者执行文件时更改的任何对inode的访...
分类:
系统相关 时间:
2014-10-04 01:22:05
阅读次数:
453
1 本地函数错误处理 2 错误处理提示更加精确 3 tag.function允许动态配置 4 俩个分号的问题 5 客户端io错误可选择不提示 6 字符串模板 7 spring整合 8 jfinal整合 9 cross mvc listener 10 用html写的function允许...
分类:
其他好文 时间:
2014-10-03 23:30:45
阅读次数:
223
今天看WWDC的232_hd_advanced_user_interfaces_with_collection_views,里面花了一般的时间来讲如何合理的设计程序的datesource,将的很有道理,在这里先存下来,以供以后学习、实践使用关于这几个要点更深刻的理解,需要以后深入学习后再总结,现在还...
分类:
其他好文 时间:
2014-10-03 20:17:45
阅读次数:
208
private void bind() { AspNetPager1.RecordCount = getCount(); AspNetPager1.PageSize = 5; string sql = "select * from Books"; SqlDataA...
分类:
Web程序 时间:
2014-10-03 19:53:55
阅读次数:
262
01、 创建 create table Strings(ID int); go02、 为表添加列 alter table Strings add String nvarchar(32); go03、 添加计算列 alter table Strings add ID2 as (ID+1...
分类:
数据库 时间:
2014-10-03 19:52:25
阅读次数:
194
1. Headers should not include using declarationCode inside headers ordinarily should not include using declarations. The reason is that the contents o...
分类:
其他好文 时间:
2014-10-03 18:58:15
阅读次数:
142