帮助程序 [英] help with program

查看:76
本文介绍了帮助程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们。我是一个关于C的新手。我们得到了一个代码,它接受一个输入,删除元音,只留下输入的空格并打印输出。这里是代码:

展开 | 选择 | Wrap | 行号

解决方案

展开 | 选择 | Wrap | 行号


感谢您帮助先生Ganon11。你的答案对我帮助很大。我仍然有一些关于代码的后续问题

1.为什么函数类型为void?这不是char,因为它会返回char吗?

2.为什么函数中的printf只有printf(" / n")

再次感谢答案,并希望你能再次帮助我。


展开 | 选择 | Wrap | 行号


hi guys. im a newbie with regards to C. we were given a code that takes an input, removes vowels and leaves only a space from the input and prints the output. here''s the code:

Expand|Select|Wrap|Line Numbers

解决方案

Expand|Select|Wrap|Line Numbers


thanks for the help sir Ganon11. You answers have helped me a lot. I still have some followup questions regarding the code
1. Why was the function of type void? Can''t it be char because it would return char?
2. Why is the printf in the function only printf("/n")
Thanks again for the answers and hope that you could help me again with this one.


Expand|Select|Wrap|Line Numbers


这篇关于帮助程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆