1.加法 //A+B问题 #define _CRT_SECURE_NO_DEPRECATE #include<iostream> #include<cstdio> #include<cstring> using namespace std; char s1[1000], s2[1000]; void ...
分类:
其他好文 时间:
2018-11-20 20:48:49
阅读次数:
172
//方法一 //每次左旋一次,判断旋转之后字符串是否与目标字符串是否一致 //旋转一圈 没有找到返回0 #define _CRT_SECURE_NO_WARNINGS #include #include #include void left_rotate(char *str, int k) { in... ...
分类:
编程语言 时间:
2018-11-10 23:49:15
阅读次数:
193
[toc] 一丶队列容器deque简介 deque底层跟vector一样,都是数组维护.不同的是可以操作头部. 二丶使用代码演示 define _CRT_SECURE_NO_WARNINGS include include include include include include includ ...
分类:
编程语言 时间:
2018-11-01 22:41:59
阅读次数:
275
#define _CRT_SECURE_NO_WARNINGS #include #include int Reverse(char a[],char b[],int len) { int i = 0; //建立一个新数组用来储存逆序的语言 for (int i = 0; i <= len; i++... ...
分类:
编程语言 时间:
2018-10-26 19:28:58
阅读次数:
123
二柱子的软件 支持真分数的四则运算 可定义出题数量 #define _CRT_SECURE_NO_DEPRECATE#include<stdio.h>#include<Windows.h>#include<time.h>int main(){ int a, b, c, d, e, f, g, k; ...
分类:
其他好文 时间:
2018-10-07 23:24:49
阅读次数:
162
找到【项目属性】,点击【C++】里的【预处理器】,对【预处理器】进行编辑,在里面加入一段代码:_CRT_SECURE_NO_WARNINGS。 ...
分类:
编程语言 时间:
2018-10-05 01:00:52
阅读次数:
188
#define _CRT_SECURE_NO_WARNINGS #include #include #include using namespace std; int main(int argc, char * argv[]) { //string str2 = "xiaoliang"; //str... ...
分类:
编程语言 时间:
2018-09-19 23:37:53
阅读次数:
412
#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include using namespace std; #define rep(i,t,n) for(int i =(t);i=(t);--i... ...
分类:
其他好文 时间:
2018-08-20 23:00:47
阅读次数:
260
一:集合运算 二:并查集 (一)集合并 (二)查某元素属于什么集合 S1={1,2,4,7} S2={3,5,8} S3={6,9,10} 三:查找(根)的实现 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h ...
分类:
其他好文 时间:
2018-08-17 00:35:06
阅读次数:
236
(一)顺序结构创建二叉树 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <math.h> #define OK 1 #define ERROR 0 #define TRUE 1 #def ...
分类:
其他好文 时间:
2018-08-12 20:01:26
阅读次数:
166