精研

size_t 和 int

func(int argc, char** argv)

struct 和 typedef struct

error: qualified-id in declaration before ‘(’ token  :qualifier是类型修饰符的意思(const、volatile都属于这个) ,id即identifier 标识符的意思,所以qualified-id是类型修饰符修饰的标示符 的意思,这种错误一般是因为前面有函数的花括号多了或少了没有一一对应;

error: ‘filename’ was not declared in this scope   :用构造函数方式创建文件流时传入的文件名变量没找到声明,这个错误可能是包含这个文件流的函数参数中没有传入该文件名变量。  

猜你喜欢

转载自www.cnblogs.com/Real-Ying/p/10800986.html