- 博客(4)
- 收藏
- 关注
原创 pat学习笔记1015
#include <algorithm> 中的sort排序方法 sort(v[i].begin(),v[i].end(),cmp) cmp为排序方法,返回为1则不交换顺序,返回了0则交换顺序。 结构体定义:在using namespace std后面。 struct node{ } 排序方法定义 int cmp(struct node a,struct node b){ ...
2020-02-23 09:42:06
122
原创 语法
if (s2.find(s1[i]) == string::npos && ans.find(toupper(s1[i])) == string::npos) ans += toupper(s1[i]); 查找字符串a是否包含子串b,不是用strA.find(strB) > 0 而是 strA.find(strB) != string::npos ...
2020-02-23 09:40:03
108
原创 pat乙级刷题笔记 1014
1014:cctype中的isdigit()与isalpha()问题。 cctype中的字符函数 函数名称 返回值 isalnum() 如果参数是字母数字,即字母或者数字,函数返回true isalpha() 如果参数是字母,函数返回true isblank(...
2020-02-04 19:17:47
203
原创 废物DEV_C++无法单步调试问题还卡的一批
看柳婼姐的题做pat,结果有的放单吗写错了愣是运行不出来,浪费两三个小时我佛了,终于百度到了 1、在“工具”-》编译选项-》”Add following commands when calling complier”下面的编辑框里写入:-g3 2、在下面的”Add these following commands when calling linker” 的编辑框里写入:-g3 3、转到prog...
2019-03-31 20:05:44
326
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人