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