随笔分类 -  c编程日记

摘要:#include #inlcude #include typedef struct node { int data; strutc node * pNext; }Node,*pNode; //函数说明 pNOde CreatList(); int AddList(); int DelList(); int TraveList(); int LoopList(); ... 阅读全文
posted @ 2017-05-15 21:07 sheldon_lee 阅读(186) 评论(0) 推荐(0)
摘要:先建立一个结构体节点: typedef struct Node{ int member; struct Node *pNext; }Node,*pNode; 创建一个栈: typedef struct stack{ pNode Top; pNode Bot; }Stack,*pStack; //初始 阅读全文
posted @ 2017-05-13 21:10 sheldon_lee 阅读(5315) 评论(0) 推荐(0)
摘要:#include<stdio.h>#include <string.h>int min(int a,int b);int main(){ char str[20]; memset(str, 0, sizeof(str)); for(int i= 0; i<7; i++) { memset(str, 阅读全文
posted @ 2017-05-11 21:10 sheldon_lee 阅读(115) 评论(2) 推荐(0)