在C++中一下几句话是什么意思啊??怎样改正这几个错误呢?请挨个解释一下!

来源:百度知道 编辑:UC知道 时间:2024/07/08 01:12:24
267 D:\ch02.cpp expected `)' before ';' token
35 D:\ch02.cpp stray '\163' in program
35 D:\ch02.cpp stray '\186' in program
35 D:\ch02.cpp expected unqualified-id before "public"
51 D:\ch02.cpp expected unqualified-id before "public"
60 D:\ch02.cpp invalid use of undefined type `struct manager'
35 D:\ch02.cpp forward declaration of `struct manager'
\ch02.cpp D:\D salary.h: No such file or directory.
200 D:\ch02.cpp invalid use of undefined type `struct manager'
D:\ch02.cpp In constructor `manager::manager(float)':
201 D:\ch02.cpp `fixedSalary' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
At global scope:
D:\ch02.cpp In constructor `techmanager::techmanager(float)':
222 D:\ch0

你好,冒昧回答一下你的问题,个人理解如下:
这个要根据错误信息并联系代码来查错的。尽量自己去理解这些英文,不会的可以查一下,下次遇到自然就明白了。 比如第一条:"267 D:\ch02.cpp expected `)' before ';' token ",D:\ch02.cpp表示你的文件路径,所在位置。即D盘下的ch02.cpp这个文件发生错误,后面的英文是说在“;”前面应该有个“)”。 这样回头就可以有方向的查下代码了。 visual c++ 6.0sp6中双击这条错误就会显示错误所在的行数。
经常写点代码,这样以后纠错就会有经验了。

这个程序很可能是从网页上直接copy的。

挨个解释?C++编译器错误我们往往只用看第一个错误,因为后面的错误往往是有第一个错误引起来的...
解释你总的让我们看看代码吧...

代码呢?