自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(42)
  • 收藏
  • 关注

转载 8层灯塔 共765盏灯

有一个8层灯塔,每层的灯数都是上一层的2倍,共有765盏灯。编程求最上层的灯数: 1 #include<stdio.h> 2 #include <math.h> 3 4 int main(int argc, char const *argv[]) 5 { 6 /*pow() 返回值的数据类型为 double*/ 7 ...

2019-09-05 14:34:00 3239

转载 三行python代码画桃心

from sympy import *from sympy.parsing.sympy_parser import parse_exprplot_implicit(parse_expr('(x**2+y**2-1)**3-x**2*y**3'),line_color='red')转载于:https://www.cnblogs.com/Ghost4C-QH...

2019-08-07 19:08:00 2182

转载 SWUST OJ(599)

拉丁方阵 1 #include <iostream> 2 #include <cstdlib> 3 4 using namespace std; 5 6 int main() 7 { 8 int n; 9 cin>>n;10 int f = 0, j;11 for(in...

2019-04-11 22:59:00 425

转载 SWUST OJ(1028)

特定字符序列的判断 1 #include <iostream> 2 #include <cstdlib> 3 #include <stack> 4 #include <string> 5 using namespace std; 6 7 int main() 8 { 9 stack<c...

2019-04-09 20:02:00 861

转载 SWUST OJ(1044)

顺序栈基本操作的实现 1 #include <iostream> 2 #include <cstdlib> 3 using namespace std; 4 5 6 typedef struct stackList 7 { 8 int *top, *base; 9 int stack_size;10...

2019-04-09 18:06:00 692

转载 SWUST OJ(1103)

删除顺序表中指定区间的数据 1 #include <iostream> 2 #include <cstdlib> 3 using namespace std; 4 5 int main() 6 { 7 int *data, n, x, y; 8 cin>>n; 9 10 data =...

2019-04-09 17:41:00 522

转载 SWUST OJ(1102)

顺序表上数据的划分问题的实现 1 #include <iostream> 2 #include <cstdlib> 3 using namespace std; 4 5 int main() 6 { 7 int *data, n; 8 cin>>n; 9 10 data = (int...

2019-04-09 17:32:00 812

转载 SWUST OJ(1101)

顺序表中的数据的循环移动 1 #include <iostream> 2 #include <cstdlib> 3 using namespace std; 4 5 int main() 6 { 7 int *data, n, x; 8 cin>>n; 9 10 data = (in...

2019-04-09 17:22:00 780

转载 SWUST OJ(1038)

顺序表中重复数据的删除 1 #include <iostream> 2 #include <cstdlib> 3 using namespace std; 4 5 int main() 6 { 7 int *data, n, x, k; 8 cin>>n; 9 10 data = (...

2019-04-09 15:39:00 702

转载 SWUST OJ(1035)

定位顺序表中最大和最小值 1 #include<iostream> 2 #include<cstdlib> 3 4 using namespace std; 5 6 int main(int argc, char const *argv[]) 7 { 8 int n, *data; 9 cin>&g...

2019-04-08 22:51:00 1046

转载 Kali 安装 VMwaretools 时 “没有足够可有空间提取xxxxxx”

方法:将VMwaretools 的压缩包复制到想要解压的地方,然后再进行提取转载于:https://www.cnblogs.com/Ghost4C-QH/p/10663121.html

2019-04-06 22:09:00 1593

转载 简单选择排序

1 #include<stdio.h> 2 #include<stdlib.h> 3 4 void SelectSort(int *a, int l) 5 { 6 int min; 7 for (int i = 0; i < l; ++i) 8 { 9 for(int j = i...

2019-03-31 21:59:00 78

转载 快速排序

1 /*快速排序*/ 2 #include<stdio.h> 3 #include<stdlib.h> 4 5 typedef struct 6 { 7 int *data; 8 int length; 9 }Sqlist;10 11 12 /*顺序表的初始化*/13 void InitLis...

2019-03-31 17:31:00 111

转载 冒泡排序

1 /*冒泡排序的实现*/ 2 #include<stdio.h> 3 4 void BubbleSort(int *a, int l) 5 { 6 int tmp; 7 for(int i = 0; i < l; i++) 8 { 9 for(int j=i+1; j<l; j++)...

2019-03-31 11:45:00 64

转载 希尔排序(缩小增量排序)

1 #include<stdio.h> 2 #include<stdlib.h> 3 4 typedef struct 5 { 6 int *data; 7 int length; 8 }Sqlist; 9 10 11 /*顺序表的初始化*/12 void InitList(Sqlist &amp...

2019-03-31 11:27:00 236

转载 SWUST OJ(963)

小偷的背包 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int s, flag, n, *a; //主函数之外定义的变量为全局变量 5 6 void dfs(int index, int count, int * a) 7 { 8 if(count == s) 9 ...

2019-03-30 20:02:00 917

转载 插入排序(折半插入排序)

折半插入排序 1 #include<iostream> 2 #include <cstdlib> 3 4 using namespace std; 5 6 void BInsertSort(int *a, int l) 7 { 8 for (int i = 1;i < l; ++i) 9 {10...

2019-03-29 13:04:00 150

转载 SWUST OJ(962)

括号匹配问题 1 #include <iostream> 2 #include <string> 3 #include <stack> 4 5 using namespace std; 6 7 int Comp(char a, char b) 8 { 9 if ((a == '[' &&amp...

2019-03-25 21:10:00 647

转载 SWUST OJ(961)

进制转换问题 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 #define STACK_SIZE 100 5 #define STCK_INCREMENT 10 6 7 typedef struct 8 { 9 int *base;10 int *to...

2019-03-24 19:27:00 1111

转载 SWUST OJ(960)

双向链表的操作问题 1 /*双向链表的操作问题*/ 2 #include <stdio.h> 3 #include <stdlib.h> 4 5 typedef struct DLNode 6 { 7 int data; 8 struct DLNode *prior,*next; 9 }DLinkList;...

2019-03-15 18:18:00 1089

转载 SWUST OJ(957)

逆置单链表 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct LNode 5 { 6 char data; 7 struct LNode *next; 8 }LinkList; 9 10 void CreateList(LinkL...

2019-03-15 14:40:00 899

转载 SWUST OJ(956)

约瑟夫问题的实现 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct LNode 5 { 6 int data; 7 struct LNode *next; 8 }LinkList; 9 10 void CreateList(Lin...

2019-03-15 14:37:00 1301

转载 SWUST OJ(955)

单链表上查找算法的实现 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct LinkNode //单链表节点结构的定义 5 { 6 int data; 7 struct LinkNode *next; 8 }LinkNode; 9...

2019-03-07 20:45:00 797

转载 SWUST OJ(954)

单链表的链接 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct LinkNode //单链表节点结构的定义 5 { 6 char data; 7 struct LinkNode *next; 8 }LinkNode; 9 10 v...

2019-03-07 20:01:00 2065

转载 SWUST OJ(953)

单链表的删除操作的实现 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct LinkNode //单链表节点结构的定义 5 { 6 int data; 7 struct LinkNode *next; 8 }LinkNode; 9 ...

2019-03-07 19:16:00 1736

转载 SWUST OJ(952)

单链表的插入操作实现 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct LinkList 5 { 6 int data; 7 struct LinkList *next; 8 }LinkList; 9 10 void Create...

2019-02-28 21:32:00 2131

转载 SWUST OJ (943)

  顺序表插入操作的实现 1 #include<stdio.h> 2 #include <stdlib.h> 3 4 void InitList(int *&l, int n) 5 { 6 l = (int*)malloc(n*sizeof(int)); 7 } 8 9 void CreateList(i...

2019-02-28 20:10:00 777

转载 暂时关闭 windows 病毒防护

转载于:https://www.cnblogs.com/Ghost4C-QH/p/10425069.html

2019-02-24 00:46:00 117

转载 FileZilla 客户端连接 FlieZilla 服务器 连接成功读取目录列表却失败的解决办法

解决过程:第一步:第二步:转载于:https://www.cnblogs.com/Ghost4C-QH/p/10425055.html

2019-02-24 00:26:00 1888

转载 串的模式匹配算法 ------ KMP算法

//KMP串的模式匹配算法#include <stdio.h>#include <stdlib.h>#include <string.h>int* get_next(char t[], int length){ int i = 0, j = -1; int* next = (int *)malloc(...

2019-02-12 00:17:00 279

转载 lvalue require as increment operand

1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 char source[]="hello"; //创建一个字符串数组值为“hello” 6 char* des =(char*)malloc(5*sizeof(char)); //初...

2019-02-08 23:44:00 720

转载 c 语言连续输入字符型数据

1 #include<stdio.h> 2 #include<stdlib.h> 3 4 void Input1(char* &str){ // 5 /* 6 这种情况下想要逐个输入字符串数组,那么在每次输入一个元素后不要加空格或者按回车, 7 否则不可见的空格符和换行符也会...

2019-02-01 18:21:00 1094

转载 [pat]数素数

时间限制:1000 ms 内存限制 32768 KB 代码长度限制 100 KB 判断程序 Standard (来自 小小)题目描述令Pi表示第i个素数。现任给两个正整数M <= N <= 10000,请输出PM到PN的所有素数。输入描述输入在一行中给出M和N,其间以空格分隔。输出描述输出从PM到PN的所有素数,每10个数字占1行,其间以空格分隔,但行末...

2018-11-01 18:08:00 121

转载 [PAT]数字分类

#include <stdio.h>#include <stdlib.h> void A1(int *ar,int i);void A2(int *ar,int i);void A3(int *ar,int i);void A4(int *ar,int i);void A5(int *ar,int i); int main(...

2018-10-27 14:09:00 110

转载 Jupyter notebook 转 pdf [完整转换]

转载于:https://www.cnblogs.com/Ghost4C-QH/p/9806725.html

2018-10-17 20:06:00 611

转载 汉诺塔递归算法

1 #include<stdio.h> 2 #include <stdlib.h> 3 4 int count=0; //主函数之外定义的变量为全局变量 5 void Hanoi(int n, char A, char B, char C) //n为盘子数,A:原位置,B:过渡位置,C:目标位置 6 { 7 if(n=...

2018-09-22 00:21:00 95

转载 关于*[pylint]E1101:Module 'xxx' has no 'xxx' member* 简单而有效的解决办法

关于 pylint 的 *E1101* 错误:概念:1 %s %r has no %r member2 3 Function %r has no %r member4 Variable %r has no %r member5 . . .描述:  在访问一个对象(变量,函数,....)中不存在的成员时会出现这个错误。​   误报:在当报错...

2018-08-16 16:52:00 817

转载 deepin系统安装成功了之后重启电脑没有deepin启动选项的简单解决办法

开机 连续按 f10(我的电脑是惠普的,由于主板的不同可能启动键也有所不同)进入 bios 界面如图选择系统设置,启动选项 之后如图选择 uefi 模式下的开机顺序栏的 操作系统管理员选项并按回车 在弹出的蓝框框中将 deepin 同过按F5或者F6 调到第一位 然后 按F10 保存修改 重启电脑 最终成功的进入到deepin 系统中。转载于:https...

2018-05-12 02:50:00 7209

转载 win10 kali子系统 安装可视化界面教程视屏

https://share.weiyun.com/5mHZPOS转载于:https://www.cnblogs.com/Ghost4C-QH/p/9005141.html

2018-05-07 21:41:00 492

转载 将本地 项目文件托管到 github

1.新建一个本地 repository文件夹2.将想要 托管的项目或文件 复制到repository 文件夹下2.右键 git bash here 输入命令 git init 生成本地仓库4..输入 git add . (添加所有文件)5.输入 git status -s 查看文件添加状态6.输入 git commit -m "say something"(双引号 ...

2018-04-10 13:05:00 91

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除