摘要:
C++中几乎所有的运算符都可用作重载。具体包含:算术运算符:+,-,*,/,%,++,--;位操作运算符:&,|,~,^,>逻辑运算符:!,&&,||;比较运算符:,>=,>=;其他运算符:[],(),->,,(逗号运算符),new,delete,new[],delete[],->*。下列运算... 阅读全文
posted @ 2014-05-25 19:47
dreamsyeah
阅读(101)
评论(0)
推荐(0)
摘要:
C++中几乎所有的运算符都可用作重载。具体包含:算术运算符:+,-,*,/,%,++,--;位操作运算符:&,|,~,^,>逻辑运算符:!,&&,||;比较运算符:,>=,>=;其他运算符:[],(),->,,(逗号运算符),new,delete,new[],delete[],->*。下列运算... 阅读全文
posted @ 2014-05-25 19:47
dreamsyeah
阅读(138)
评论(0)
推荐(0)
摘要:
sizeof,strlen的使用例子#include#includeusing namespacestd;int main(){char a[] ="abcdef";char b[20]="abcdef";string s ="abcdef";int d[20] = {3,4};char e[... 阅读全文
posted @ 2014-05-25 09:39
dreamsyeah
阅读(144)
评论(0)
推荐(0)
摘要:
sizeof,strlen的使用例子#include#includeusing namespacestd;int main(){char a[] ="abcdef";char b[20]="abcdef";string s ="abcdef";int d[20] = {3,4};char e[... 阅读全文
posted @ 2014-05-25 09:39
dreamsyeah
阅读(173)
评论(0)
推荐(0)

浙公网安备 33010602011771号