1033: [编程入门]自定义函数之字符提取 摘要:#include<stdio.h>#include<string.h>voidfind_char(char*str,&n…… 题解列表 2025年12月10日 0 点赞 0 评论 39 浏览 评分:0.0
有没有·大佬看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>voidtiqu(char[]);intmain()…… 题解列表 2025年10月30日 0 点赞 1 评论 180 浏览 评分:0.0
[编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void find_char(char *str, char *resu…… 题解列表 2025年10月30日 0 点赞 0 评论 154 浏览 评分:10.0
一行代码搞定 摘要:解题思路: 获取输入:通过input()函数读取用户输入的字符串(如输入 “hello world”); 筛选元音字符:用列表推导式遍历输入字符串的每个字符,通过if i in…… 题解列表 2025年10月26日 2 点赞 0 评论 142 浏览 评分:10.0
for轮询逐个取出判断 摘要:解题思路:先定义好一个字符串变量存储输入的字符串,然后送到函数里使用for轮询逐个进行判断每一次取出的字符是否是元音字母(aeiou),在此之前还要再定义一个字符串变量用来存储取出的元音字母,判断结束…… 题解列表 2025年04月09日 1 点赞 0 评论 492 浏览 评分:10.0
1033 元音字符提取 摘要:解题思路:注意事项:题目只需要考虑小写情况参考代码:#include<stdio.h>int main(){ char a[1000]; char b[1000]; gets(a); in…… 题解列表 2025年03月27日 1 点赞 0 评论 624 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s, res;&n…… 题解列表 2025年03月21日 0 点赞 0 评论 287 浏览 评分:0.0
字符串的提取 摘要:解题思路:注意事项:可以使用+运算符或join方法来实现类似将一个字符串追加到另一个字符串的效果参考代码:s=input()r=[]v='aeiouAEIOU'for i in s: …… 题解列表 2025年02月27日 0 点赞 0 评论 463 浏览 评分:0.0
自定义字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100];&…… 题解列表 2025年01月24日 0 点赞 0 评论 601 浏览 评分:0.0
基于C++,一个简单的编程实现 摘要:解题思路:熟练使用字符串应用注意事项:注意遍历时是否越界参考代码:#include <iostream>#include <string>using namespace std…… 题解列表 2025年01月03日 2 点赞 0 评论 405 浏览 评分:6.0