1)为了使你的问题得到更快的解决!请把环境和完整的代码以及出错信息发布上来!
win2k3 + mingw
[quote]
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *str = “hello world!\n”;
strcpy( tstr, str );
printf( “%s\n”, tsrt );
return 0;
}
gcc test.c -o test
C:\>gcc test.c -o test
test.c: In function `main’:
test.c:8: error: `tstr’ undeclared (first use in this function)
test.c:8: error: (Each undeclared identifier is reported only once
test.c:8: error: for each function it appears in.)
test.c:10: error: `tsrt’ undeclared (first use in this function)
[/quote]
2)为了问题的完整性,一般除了楼主回帖说明有没解决问题外,最好不要出现其他诸如”厉害”,”高手”,”学习了”,”支持”等之类的回复!
3)所提问题一般会尽快解决,不过在提问前,还请认真看书!
>> 本文固定链接: http://www.vcgood.com/archives/2720