1
我的程序的第一行是:Visual C++不能識別註釋行嗎?
/* Arquivo testaesparsas.c */
而且,編譯後,我得到這些(以及其他許多)錯誤信息:
visual studio 2010\projects\matrizes esparsas\matrizes esparsas\testeesparsas.c(1): error C2061: syntax error : identifier 'testaesparsas'
visual studio 2010\projects\matrizes esparsas\matrizes esparsas\testeesparsas.c(1): error C2059: syntax error : ';'
visual studio 2010\projects\matrizes esparsas\matrizes esparsas\testeesparsas.c(1): error C2059: syntax error : '.'
visual studio 2010\projects\matrizes esparsas\matrizes esparsas\testeesparsas.c(1): warning C4138: '*/' found outside of comment
出人意料的是,我發現連接到本機庫的錯誤(如stdio.h中)錯誤的消息之中:
1>c:\arquivos de programas\microsoft visual studio 10.0\vc\include\stdio.h(245): error C2059: syntax error : ')'
1>c:\arquivos de programas\microsoft visual studio 10.0\vc\include\stdio.h(247): error C2143: syntax error : missing '{' before '__cdecl'
1>c:\arquivos de programas\microsoft visual studio 10.0\vc\include\stdio.h(247): error C2146: syntax error : missing ')' before identifier '_DstSize'
1>c:\arquivos de programas\microsoft visual studio 10.0\vc\include\stdio.h(247): error C2081: 'size_t' : name in formal parameter list illegal
什麼可能會發生?
它在抱怨'; '當連線中沒有那個字符時。我不認爲你正在編譯你認爲你的文件。 – Barmar
評論說測試** ae ** sparsas,但錯誤說測試** ee ** parsas –
Barmar,實際上:/ –