C语言
寒江雪翁
穷则独善其身,达则兼济天下。
展开
-
动态单链表操作(1)
int localListLookup(local_list_t **list, int id){ while (*list != NULL) { if ((*list)->id == id) { return TRUE; } list = &(*list)->next; }原创 2014-06-20 19:35:35 · 598 阅读 · 0 评论 -
动态单链表操作(2)
#include#include#includetypedef struct node{int id;struct node *next;}NODE;NODE* node_creat(){NODE *head;NODE *p1,*p2,*p3,*p4;int n,i,j,tem;n = 0;head = NULL;p2 = p1 = (NODE*)malloc(sizeof(NODE));prin原创 2014-06-24 11:05:21 · 416 阅读 · 0 评论 -
C语言编写万年历小程序
#include#define Mon 1#define Tues 2#define Wed 3#define Thur 4#define Fri 5#define Sat 6#define Sun 0#define January_days 31#define February_days原创 2014-07-04 17:09:20 · 1842 阅读 · 1 评论