|
发表于 2018-11-7 09:26:42
|
显示全部楼层
老师,这是第一节课作业,我的系统是Windows7,为什么抄写编码到最后出现了这么多问题?每个行出现的错误都一样,麻烦解答一下,谢谢!
C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp In function 'int countLines(const char*)':
18 11 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] 'FILE' was not declared in this scope
18 17 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] 'fp' was not declared in this scope
22 39 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] 'fopen' was not declared in this scope
24 16 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] 'stderr' was not declared in this scope
24 55 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] 'fprintf' was not declared in this scope
28 27 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] 'fgetc' was not declared in this scope
28 32 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] 'EOF' was not declared in this scope
C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp At global scope:
36 19 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] expected constructor, destructor, or type conversion before '(' token
38 13 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] expected unqualified-id before 'return'
39 1 C:\Users\Administrator\Desktop\Î′ÃüÃû1.cpp [Error] expected declaration before '}' token
|
|