
菜鸟学习
대휘kiyo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
连通图的DFS,BFS,并查集的试探
自己的DFS,样例没过,果然还是菜#include <iostream>#include<cstdio>#define n 100using namespace std;int v,s;//int flag[n];int DFS(int G[][n],int s ){ int count = 0; int vis[n] = { 0 }; vis[s...翻译 2018-12-14 00:58:29 · 207 阅读 · 0 评论 -
反对
#include<iostream>#include<cstring>#include<cstdlib>#define maxn 1000using namespace std;int a[maxn], b[maxn];bool myStrcmp(const char str1[], const char str2[]){ if(strl...转载 2018-12-27 08:45:43 · 134 阅读 · 0 评论 -
ds
#include<bits/stdc++.h>struct a{ int data; struct a*next;};struct a*creakline(){ struct a*H; H=(struct a*)malloc(sizeof(struct a)); H->next=NULL; return H;}void insert(struct a*l)...原创 2018-12-27 09:26:22 · 325 阅读 · 0 评论 -
链表学习
突然讲链表,哼 #include<stdio.h> #include<stdlib.h> //定义个链表。 struct NODE{ int order; char name[20]; struct NODE *pnext;//指向truct node的一个指针,链的产生这 }; //创建节点...原创 2018-12-12 09:02:55 · 325 阅读 · 1 评论