摘要:
#include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2019-12-26 21:54
烟雨陶
阅读(95)
评论(1)
推荐(0)
摘要:
ex1.2#include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int sc 阅读全文
posted @ 2019-12-19 14:16
烟雨陶
阅读(117)
评论(2)
推荐(1)
摘要:
// 这个程序用于观察数组中的一组数据元素在内存中是否是连续存放的 // 以及数组元素的直接访问与间接访问 #include <stdio.h> #include <stdlib.h> const int N=3; int main() { int a[N] = {1, 2, 3}; // 定义一维 阅读全文
posted @ 2019-12-15 17:00
烟雨陶
阅读(95)
评论(2)
推荐(0)
浙公网安备 33010602011771号