编写特定程序 [英] Writing a specific program

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

问题描述

如果输入的输入比80个字符更多,我如何编写输出输入的程序?

how do i write a program that outputs its input if its input is more
than 80 characters?

推荐答案

Albert写道:
Albert wrote:
如果输入的输入超过80个字符,我如何编写输出输入的程序?
how do i write a program that outputs its input if its input is more
than 80 characters?



这听起来像是家庭作业。请不要指望有人做你的b $ b b家庭作业。如果你需要任何帮助,请告诉我们你做了什么。


Madhav。



This sounds like homework. Please DO NOT expect someone to do your
homework. If you want any help, show us what you have done.

Madhav.


使用循环来获取输入,

将值放入缓冲区或文件中,

输入结束时,

输出结果。

use a loop to get input,
put the values into a buffer or a file,
when the input is over,
output the result.


Albert写道:

如果输入的输入更多,我如何编写一个输出输入的程序
more超过80个字符?

how do i write a program that outputs its input if its input is
more than 80 characters?




将输入读入缓冲区。如果超过80个字符长输出

它,否则丢弃它。


如果你不能准确无误地表达你的需求你
将很难准确编程。


-

"如果你想通过groups.google.com发布一个后续内容,不要使用

破碎的回复链接在文章的底部。点击

" show options"在文章的顶部,然后点击

回复在文章标题的底部。 - Keith Thompson

详情请见:< http://cfaj.freeshell.org/google/>



Read the input into a buffer. If it is over 80 chars long output
it, otherwise discard it.

If you can''t express your needs accurately and unambiguously you
will have great difficulty in programming accurately.

--
"If you want to post a followup via groups.google.com, don''t use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>


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

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