- 博客(3)
- 收藏
- 关注
转载 c primer plus 链表的接口代码
list.h文件代码#ifndef LIST_H#define LIST_H#include<stdbool.h>#define TSIZE 45struct film{ char title[TSIZE]; int rating;};typedef struct film Item;typedef struct node{ Item item; ...
2018-08-17 14:51:55 599 1
转载 typedef struct POINT
c语言规范,定义结构体: typedef struct POINT { ... ... }POINT_T, *POINT_P; POINT为结构名,这个名字主要是为了在结构体中...
2018-08-02 15:30:51 1062
转载 结构体中定义一个函数指针
#include <stdio.h> struct DEMO { int x,y; int (*func)(int,int); //函数指针 }; int add1(int x,int y) { return x*y; } int add2(int x,int y) { return x+y; } void m...
2018-08-01 22:39:53 2079
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人