编程用的dec c++
#排错[Error] expected unqualified-id before ‘const’
做网课练习习题时,题目提示要实现类似这样的函数
void register(const char *name, int age, char sex);
但是register是关键字,不能作为变量名,改为:
void myregister(const char *name, int age, char sex);
可以则编译通过
编程用的dec c++
#排错[Error] expected unqualified-id before ‘const’
做网课练习习题时,题目提示要实现类似这样的函数
void register(const char *name, int age, char sex);
但是register是关键字,不能作为变量名,改为:
void myregister(const char *name, int age, char sex);
可以则编译通过