摘要:
函数重载通过函数参数,和函数参数类型,以及参数个数判断,1.void output(int a int b)int output (int a, int b)不能构成重载2.void output(int a int b = 5) void output(int)也不能构成函数重载没有构造函数,默认构造函数由编译器生成。 阅读全文
posted @ 2012-08-14 21:58
l851654152
阅读(160)
评论(0)
推荐(0)
摘要:
在C语言中声明结构体变量需要加上struct关键字,而c++中不需要加。 阅读全文
posted @ 2012-08-14 20:34
l851654152
阅读(144)
评论(0)
推荐(0)

浙公网安备 33010602011771号