![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
菜鸟学习
대휘kiyo
这个作者很懒,什么都没留下…
展开
-
连通图的DFS,BFS,并查集的试探
自己的DFS,样例没过,果然还是菜 #include <iostream> #include<cstdio> #define n 100 using 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 · 162 阅读 · 0 评论 -
反对
#include<iostream> #include<cstring> #include<cstdlib> #define maxn 1000 using namespace std; int a[maxn], b[maxn]; bool myStrcmp(const char str1[], const char str2[]) { if(strl...转载 2018-12-27 08:45:43 · 97 阅读 · 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 · 249 阅读 · 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 · 260 阅读 · 1 评论