原创 VScode配置C/C++環境(從配置到使用)
一、軟件安裝 vscode軟件安裝; 二、MinGW-w64安裝 下面爲官方的離線安裝包: https://sourceforge.net/projects/mingw-w64/files/mingw-w64/m
原创 零成本搭建博客 HEXO+Github
這幾天用github搭建了hexo博客現在寫篇文章試一下順便講一下自己的步驟和遇到的問題。 一:準備 給電腦配置Node.js環境和git(網上和多教程,請自行查閱) 申請自己的GitHub賬號。 ##二:本地搭建 本地新建一個文件
原创 數據結構 C/C++ 對角矩陣
#include<stdio.h> int main() { int i,j,N,t=0,n,m,o,p=0; printf("請輸入矩陣階數N:"); scanf("%d",&N); A: printf("請
原创 數據機構 C/C++ 快速排序
#include<stdio.h> #define max 50 void sort(int a[],int left,int right) { if(left>=right) return; int i
原创 數據結構 C/C++ 有向鄰接表
#include<stdio.h> #define MAX 100 typedef struct node { int adjvex; struct node *nextadj; }Edgenode; typedef s
原创 數據結構 C/C++ 冒泡排序
#include<stdio.h> #define max 40 void sort(int a[],int n) { int i,j,k,t; for(i=0;i<n;i++) { for(j=
原创 數據結構 C/C++ 稀疏矩陣
#include<stdio.h> #define MAX_SIZE 101 typedef int elemtype; typedef struct { int row; int col; elemtype
原创 v2+ws+tls教程
v2-ws-tls教程就三步 1、先裝 v2,官方腳本,以後升級也是重複執行就是 bash <(curl -L -s https://install.direct/go.sh) 複製代碼 新安裝完會提示兩行,一個端口,一個uuid,
原创 二叉樹的非遞歸遍歷 前序 中序 後序 -----完美運行
#include<stdio.h> #include<stdlib.h> #define MAX 100 typedef struct { bitree ptr; int flag; }stacknode; typede
原创 數據結構 C/C++ 對稱矩陣
#include<stdio.h> #include<stdlib.h> static int N,M; void Out(int a[N][N]) //對稱矩陣輸出 { int j,i; p
原创 數據結構 C/C++ 鏈棧
#include<stdio.h> typedef int datatype; typedef struct node //鏈棧的定義 { datatype data; struct no
原创 數據結構 C/C++ 線索二叉樹
#include<stdio.h> typedef int datatype; typedef char Datatype; typedef struct Bithrnode { Datatype data; stru
原创 數據結構 C/C++ 關鍵路徑
#include <stdio.h> #include <stdlib.h> #include <string.h> //定義鄰接表 typedef struct node { int adjvex; int w; st
原创 git bash 裏使用python
一般直接在git bash中直接輸入python後會無反應 可以在python前添加 winpty winpty python 每次在python前添加winpty有些麻煩,我們可以執行指令生成一個名爲“python”的別名
原创 c/c++ 單鏈表,字符串 數據結構
#include<stdio.h> #include<string.h> #define MAXSSIZE 100 typedef struct { char data[MAXSSIZE]; int len }Seqst