我的节目的第一行是:
/* 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
可能会发生什么?
答案 0 :(得分:0)
visual studio 2010\projects\matrizes esparsas\matrizes esparsas\testeesparsas.c(1): warning C4138: '*/' found outside of comment
此警告可能是由于尝试嵌套评论或键入' *'评论之前:
int */*comment*/ptr;
或
a = b */*comment*/c;