文章列表
对字母字符串进行排序
摘要:#include<iostream>#include<cstring>using namespace std;int main(int argc, char const *argv[]) { cha……
string类的加减操作以及find函数
摘要: #include<iostream> #include<string.h> #include<cmath> #include<cctype> using namespace std; i……
string类的构造函数
摘要: #include<iostream> #include<string.h> using namespace std; int main(int argc, char const *argv[……
题解1032(c语言代码) 极短代码,适合小白(无gets,puts等冷门函数)
摘要:重点: 1:简单的题,不要想得那么难! 2:连接字符串无需strcpy! 无需strcpy! 无需strcpy! 3:字符串输入输出用%s!代码: #include<stdio……
删除字符串中指定的字符
摘要:要求:给定字符串 a="hello" 删除a中的字符'e'代码如下:#include<stdio.h>
int main(void) {
int i ,j;
char a[] =……
删除字符串a中指定的字符集
摘要:字符串a[ ] = "hello";字符串b[ ] = "elo";删除字符串a中在字符串b中出现的字符实现代码:int main(void) {
int i, j,k;
char a[] = "……
明天蓝桥杯省赛了,各位加油!
摘要:各位加油!即使写不出来也暴力一下,暴力总有点分的,有的时候暴力还可以莫名其妙的通过。注意边界数据,比如说最大值,0值,最小值,以及一些奇怪的数据,注意在草稿纸上面多推理几遍数据注意一些化简得转换问题,……