本文共 317 字,大约阅读时间需要 1 分钟。
#if 1 #include <stdio.h> #include <string.h> struct student // { char *name ; //if array,it is avaliable. //MEMORY IS NOT HAVE A SKY.若改为数组就好了。 int score; }stu,*pstu; int main() { //union student stu; strcpy(stu.name,"Jimy"); stu.score = 99; printf("string is %s ",stu.name); return 0; }
error : 内存没有分配空间给指针变量,初始化内容为空.
转载地址:http://vdtgf.baihongyu.com/