当前位置:网站首页>输入一串字母 将里面的元音输出希望各位大佬能给指导
输入一串字母 将里面的元音输出希望各位大佬能给指导
2022-07-26 22:38:00 【沉梦昂志浮生若梦】
#include <stdio.h>
#define SIZE 100
int main()
{
void fun(char a[], char b[]);
char a[SIZE];
char b[SIZE];
scanf_s("%s", a,SIZE);
fun(a,b);
return 0;
}
void fun( char a[], char b[])
{
int number = 0;
for (int i = 0; i < SIZE; i++)
if (a[i] == 'a' || a[i] == 'e' || a[i] == 'i' || a[i] == 'o' || a[i] == 'u')
b[number++] = a[i];
for (int i = 0; i < number; i++)
printf("%c", b[i]);
}
边栏推荐
- Xshell连接服务器时报“Could not load host key”错误
- 今日份20220719折腾deeplabcut
- MySQL optimization
- 13_集成学习和随机森林(Ensemble Learning and Random Forests)
- [Qt]解决中文乱码问题
- In JS, the common writing methods and calling methods of functions - conventional writing, anonymous function writing, taking the method as an object, and adding methods to the object in the construct
- Leetcode - linked list
- Anaconda => PyCharm => CUDA => cudnn => PyTorch 环境配置
- 信号与系统冲激响应与阶跃响应
- AutoCAD的卸载后重新安装,删除注册表的详细过程
猜你喜欢

C and pointer Chapter 18 runtime environment 18.1 judgment of runtime environment

Go exceed API source code reading (IV) -- save (), SaveAs (name string)

Web middleware log analysis script 2.0 (shell script)

哨兵2号(Sentinel-2)的下载及处理

Complete review of parsing web pages

SSRF (server side request forgery) -- Principle & bypass & Defense

Configure deeplobcut2 with your head covered

4. Talk about the famous Zhang Zhengyou calibration method

20220720 toss deeplobcut2

CCPD data set processing (target detection and text recognition)
随机推荐
蒙着头配置deeplabcut2
94. Middle order traversal of binary tree
Topological sorting (learning notes) introduction + judge whether there is a ring
CSDN article syntax rules
9_ Logistic regression
7_主成分分析法(Principal Component Analysis)
信号与系统冲激响应与阶跃响应
傅里叶分析(基础介绍)
Draw impact function
三层架构 模拟
UNET notes
Convolutional neural network -- lenet (pytorch Implementation)
9_逻辑回归(Logistic Regression)
Shufflenet series (2): explanation of shufflenet V2 theory
[Qt]元对象系统
Codeforces E. maximum subsequence value (greed + pigeon nest principle)
Helicopter control system based on Simulink
C and pointer Chapter 18 runtime efficiency 18.3 runtime efficiency
爬虫解析网页的 对象.元素名方法
V-viewer use