2015年6月7日

类型转换

摘要: 1 /* 类型转换 */ 2 3 /* 转换方式 */ 4 5 #include 6 using namespace std; 7 8 int main() 9 { 10 int a = 3/2;// 隐式转换 11 12 double b = (int)... 阅读全文

posted @ 2015-06-07 09:55 Dragon-wuxl 阅读(72) 评论(0) 推荐(0)

为什么需要重载重载的简单实现

摘要: 1 /* 运算符重载 */ 2 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 int main() 10 { 11 12 char *str1 = "abc"; 13 14 ... 阅读全文

posted @ 2015-06-07 09:04 Dragon-wuxl 阅读(190) 评论(0) 推荐(0)

导航