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