随笔分类 - 使用C/C++编写程序时的困惑
错题本
摘要:一、struct定义结构体1、先声明结构体类型再定义变量名struct name{ member ..};name A;... 如:struct student{ int a;};student stu1,stu2;若在c语言中定义,应该加上struct:struct student stu1,st
阅读全文
摘要:煎蛋栗子: typedef struct Node{int data;struct Node *next;}LinkList;LinkList *p=(LinkList *)malloc(sizeof(LinkList));在这里,变量p是【LinkList *】类型的【指针变量】它的值是指向某一个
阅读全文

浙公网安备 33010602011771号