小白求大神指教,帮忙看看这是怎么回事!!!
#include <stdio.h>int main(){
int shu_zu[3][3] = {1,2,3,4,5,6,7,8,9};
int *p_shi_zi = NULL;
p_shu_zi = shu_zu[0];
printf("*p_shu_zi++是%d\n", *p_shu_zi++);
printf("(p_shu_zi)++是%d", (*p_shu_zi)++);
printf("shu_zu[0][1]是%d\n", shu_zu[0][1]);
return 0;
}
-----Configuration: 20whl - Win32 Debug--------------------
Compiling...
20whl.c
G:\C语言编程\WHL\20whl\20whl.c(5) : error C2065: 'p_shu_zi' : undeclared identifier
G:\C语言编程\WHL\20whl\20whl.c(5) : warning C4047: '=' : 'int ' differs in levels of indirection from 'int *'
G:\C语言编程\WHL\20whl\20whl.c(6) : error C2100: illegal indirection
G:\C语言编程\WHL\20whl\20whl.c(7) : error C2100: illegal indirection
Error executing cl.exe.
20whl.obj - 3 error(s), 1 warning(s)