摘要:
#include<stdio.h> #include<malloc.h> struct Student{ int sid; int age; } struct Student* CreateStudent(void); void ShowStudent(strucent Student*) int 阅读全文
摘要:
typedef int INT; //相当于给int起了一个别名INT typedef struct Student { int sid; char name[100]; char sex; }ST; //ST st 就相当于struct Student st ,给struct Student 起了 阅读全文
摘要:
#include <stdio.h> //#为预处理命令 #include <malloc.h>//内存分配 int main(void) { //静态分配内存(数组) int a[5] = {2,3,5,6,9}; int len = 0; //len 为一维数组的长度,可以根据需求动态分配长度 阅读全文