1033: [编程入门]自定义函数之字符提取,题解简单易懂 摘要:```c #include #include void fun(char arr[]){ int n=strlen(arr);//获取长度 for(int i=0;i…… 题解列表 2024年08月02日 0 点赞 0 评论 143 浏览 评分:0.0
注意换行符! 摘要:解题思路:需要注意要把自++多余的最后一个空元素设为换行符!注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[1…… 题解列表 2024年09月10日 0 点赞 0 评论 77 浏览 评分:0.0
1033: [编程入门]自定义函数之字符提取(python) 摘要:#### 1033: [编程入门]自定义函数之字符提取 可以采用关键字`in`来查询指定字符是否存在于指定字符串中,如果字符串中存在指定字符则返回True,如果不存在则返回False。 …… 题解列表 2024年10月24日 0 点赞 0 评论 170 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void yuany(char a[]){ char b[100]; int i,j=0; for(i=0;i<100…… 题解列表 2024年11月15日 0 点赞 0 评论 162 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def yuan(a,b): for i in a: if i=='a' or i=='e' or i=='i…… 题解列表 2024年11月16日 0 点赞 0 评论 272 浏览 评分:0.0
先转化为小写 摘要:#include<stdio.h> #include<ctype.h> int main(void) { char a[100]; char target[100]; …… 题解列表 2024年12月28日 0 点赞 0 评论 154 浏览 评分:0.0
自定义字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100];&…… 题解列表 2025年01月24日 0 点赞 0 评论 357 浏览 评分:0.0
字符串的提取 摘要:解题思路:注意事项:可以使用+运算符或join方法来实现类似将一个字符串追加到另一个字符串的效果参考代码:s=input()r=[]v='aeiouAEIOU'for i in s: …… 题解列表 2025年02月27日 0 点赞 0 评论 234 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s, res;&n…… 题解列表 2025年03月21日 0 点赞 0 评论 106 浏览 评分:0.0
1033 元音字符提取 摘要:解题思路:注意事项:题目只需要考虑小写情况参考代码:#include<stdio.h>int main(){ char a[1000]; char b[1000]; gets(a); in…… 题解列表 2025年03月27日 1 点赞 0 评论 172 浏览 评分:0.0