![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构&&作业
文章平均质量分 71
qqxufo
这个作者很懒,什么都没留下…
展开
-
链表
#include #include #include #include #include using namespace std; typedef struct Node{ int num; struct Node *next; }LinkList; void CreateLinkList(LinkList *L) { LinkList *p = L; for(int i =原创 2014-10-28 21:50:48 · 437 阅读 · 0 评论 -
Windows下C语言的Socket编程练习
服务器: #include #include #include #define MYPORT 80 #define BACKLOG 5 #define MAXDATASIZE 100 int main() { WSADATA wsaData; //初始化Socket库 WSAStartup( MAKEWORD( 2, 0), &wsaData); int m原创 2014-09-03 16:53:17 · 502 阅读 · 0 评论 -
二叉树的遍历
#include #include #include #include #include using namespace std; struct Node{ char data; Node *lchild, *rchild; }; void create(Node *&rt) { char data; scanf("%c", &data); if(data == '#'){原创 2014-11-17 21:21:35 · 421 阅读 · 0 评论 -
LinkList *L , LinkList *&L 和 LinkList &*L 的区别
首先来看看 LinkList *L 和 LinkList *&L,原创 2014-10-07 21:32:52 · 12970 阅读 · 7 评论 -
汉诺塔c语言
void hannuo(int n, char x, char y, char z) { if(n == 1) printf("Move %d %c -> %c\n", n, x, z); else { hannuo(n - 1, x, z, y); printf("Move %d %c -> %c\n", n, x, z); hannuo(n - 1, y, x, z);原创 2014-10-20 19:44:07 · 681 阅读 · 0 评论