原创 初學vue,組件及插槽
組件是爲了解決複用而誕生的 創建組建 定義創建,名爲todo-item的組件 <div id="app"> <ul> <todo-item v-for="item in list" :title="item
原创 初學vue,我的第一個程序
創建Vue對象 <div id="app">{{message}}</div> <script> var vm = new Vue({ <!--el:指定一個DOM節點--> el:"#a
原创 使用scp進行win與Linux服務器之間的文件傳輸
上傳文件 在 Linux 操作系統的計算機上,執行以下命令,向 Linux 雲服務器上傳文件。 scp 本地文件地址 雲服務器帳號@雲服務器實例公網 IP/域名:雲服務器文件地址 例如,您需要將本地文件 /home/lnmp0.4.
原创 王道考研 ++++ Kruskal 克魯斯卡爾算法
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define MaxSize 100 typedef struct GraphEage { int fron
原创 王道考研 ++++ 堆排序
#include <stdio.h> #include <stdlib.h> void swap(int *a,int *b); void adjustdown(int *list,int k,int size); void Head
原创 王道考研 ++++ Floyd 弗洛伊德算法
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #define MaxSize 100 #define INF 10000
原创 王道考研 ++++ Prim 普里姆算法
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #define MaxSize 100 #define INF 10000
原创 王道考研 ++++ 圖的深度優先搜索
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #define MaxSize 100 typedef struct E
原创 王道考研 ++++ 快速排序
#include <stdio.h> #include <stdlib.h> int i = 0; void swap(int *a,int *b); int getpivot(int *list,int L,int R); int*
原创 王道考研 ++++ 直接插入排序
#include <stdio.h> #include <stdlib.h> /*插入排序*/ int* Insertsort(int *list,int size) { int i,j; for(i = 2;i <= siz
原创 王道考研 ++++ 希爾排序
#include <stdio.h> #include <stdlib.h> /*希爾排序*/ int* shellsort(int size,int init,int *list) { int i,j,dk; for(dk =
原创 王道考研 ++++ KMP算法
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MaxSize 100 /*構造match數組*/ void BuildMatch(char *pa
原创 王道考研 ++++ Dijkstra 迪傑斯特拉算法
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #define MaxSize 100 #define INF 10000
原创 王道考研 ++++ 二叉樹層次遍歷(C語言)
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define MaxSize 101 typedef struct LTree { char data;
原创 王道考研 ++++ 圖的廣度優先搜索
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define MaxSize 100 typedef struct EageTable //邊表 { in