原创 排序

#include <iostream> #include <stack> #include <cstdlib> #include <cstring> #include <cstdio> #include <cassert> vo

原创 C語言練習題二

#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdio.h> ////使用宏實現兩個數中求較大值 //#define MAX(a,b) (a)>(b

原创 學生管理系統

#define _CRT_SECURE_NO_WARNINGS 1 #define _CRT_SECURE_NO_WARNINGS 1 #include <cstdio> #include <cstdlib> #include

原创 鏈表面試題

#pragma once #define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> #include<assert.h> typedef i

原创 二叉樹

#pragma once #include<stdio.h> #include<malloc.h> #include<assert.h> #include<stdlib.h> #include<string.h> #includ

原创 棧和隊列

#pragma once #include<stdio.h> #include<assert.h> #include<stdlib.h> #include<windows.h> typedef int DataType; /

原创 順序表

//#ifndef __SEQ_H__ //#define __SEQ_H__ // //#include<stdio.h> //#include<assert.h> //#include<stdlib.h> // //typed

原创 C語言練習三

#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> ////100-200素數 //int main() //{ // int i; // int k; // int c

原创 C語言練習題一

#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> //求n! //int main() //{ // int i = 0; // int j = 0; // int ret=

原创 STL-容器的簡單應用

#include<iostream> using namespace std; #if 0 #include<vector> void TestVector1() { vector<int> v1; //空vector

原创 關於解決centos7安裝YCM插件出現的錯誤:Failed connect to go.googlesource.com:443; refused to connect.

fatal: 無法訪問 ‘https://go.googlesource.com/tools/’:Failed connect to go.googlesource.com:443; 拒絕連接 fatal: 無法克隆 ‘https

原创 C++強制類型轉換

#include<iostream> using namespace std; //static_cast、reinterpret_cast、const_cast、dynamic_cast #if 0 //static_cast

原创 C++智能指針

#include<iostream> using namespace std; #if 0 void _MergeSort(int* a, int left, int right, int* tmp) { if (left >

原创 寫時拷貝

#define _CRT_SECURE_NO_WARNINGS 1 #include<iostream> using namespace std; #include<string.h> #include<windows.h>

原创 深淺拷貝

#define _CRT_SECURE_NO_WARNINGS 1 #include<iostream> using namespace std; #include<string.h> #if 0 //簡單的賦值淺拷貝 c