上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: 头文件:#include <stdlib.h>atoi() 函数用来将字符串转换成整数(int),其原型为:int atoi (const char * str);【函数说明】atoi() 函数会扫描参数 str 字符串,跳过前面的空白字符(例如空格,tab缩进等,可以通过 isspace() 函数 阅读全文
posted @ 2017-01-20 18:36 女王公园的八神 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 摘自http://simplyy.space/ 核心思想 1、首先,想好你想要寻找什么。 哪些词能够最好地描述你要寻找的信息或者概念? 哪些词是你能够用来替换的? 有没有那些词是可以不必包括在你想要搜索的更好定义你的需求之内? 2、构建你的搜索要求。 使用尽可能多你所需要的关键词;越多越好。 如果皆 阅读全文
posted @ 2017-01-20 15:11 女王公园的八神 阅读(353) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>//这种在几个数里面任意去几个连续的数求和就用两个循环套一下就可以了 using namespace std; int main() { int n, i, j, sum, cnt = 0; cin >> n; //经分析可知,其i的取值不可能大于n/2+1,那 阅读全文
posted @ 2017-01-20 15:07 女王公园的八神 阅读(90) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>//写字符串的题目可以用这种方式:str[i][j] &str[i] using namespace std; int main() {int n,m,i,j,num,a[101],b[101],t,k; char str[101][51]; cin>>n>>m; 阅读全文
posted @ 2017-01-19 22:59 女王公园的八神 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 第一遍学习某种东西,也许什么都感觉十分的模糊;第二遍则会明朗很多;第三遍可能就会通透了;这个时候还需要第四遍去让你成为这个学习领域的专家。但是在浮躁的环境下,第一遍没完成就大喊枯燥,不可取,静下心来,多来几遍。越是需要花大量时间去理解去重复的东西,说明这件事情门槛越高,你过去了,就把更多人甩在身后。 阅读全文
posted @ 2017-01-19 15:58 女王公园的八神 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>typedef int ElementType;typedef struct Node *PtrToNode;//就是一个数据类型为Node的PtrToNode的指针struct Node { ElementType Data 阅读全文
posted @ 2016-10-11 15:05 女王公园的八神 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 这道题目还是不难的,但是要注意gcc里面gets已经不能用了,用gets_s还是可以的,尽管我并不知道有什么区别 #include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char a[20][20]; int x, y; ch 阅读全文
posted @ 2016-09-20 00:05 女王公园的八神 阅读(303) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char s[80]; int n, len; scanf("%s", s); len = strlen(s); for (int i = 1; i <= len; i+ 阅读全文
posted @ 2016-07-31 17:20 女王公园的八神 阅读(205) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char s[10000]; int a0 = 0, a1 = 0, a2 = 0, a3 = 0, a4 = 0, a5 = 0, a6 = 0, a7 = 0, a8 阅读全文
posted @ 2016-07-31 15:36 女王公园的八神 阅读(861) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>#include<cstdlib>#include<cstring>int main(){ char s[80];//输入OOXXOXXOOO,最终得分计算为1+2+0+0+1+0+0+1+2+3=10 int m = 0, sum = 0, i = 0; scanf 阅读全文
posted @ 2016-07-31 01:28 女王公园的八神 阅读(179) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页