首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

嵌套结构的使用有关问题

2013-01-08 
嵌套结构的使用问题#includestdio.htypedef struct a{char name[8]int count}Nametypedef struct b{N

嵌套结构的使用问题


#include<stdio.h>

typedef struct a{
char name[8];
int count;
}Name;

typedef struct b{
Name *point[3];
}P;

int main(){

P Student;
Student.point[0]->count = 100;
        //为什么运行时  错误啊 ............
return 0;
}


[解决办法]
相当于使用了一个..没有指向的指针..

int *p;
*p = 123;
===================================

热点排行