一个程序,在某些时刻确定响铃 [英] a program which rang a bell at certain at certain moments

查看:77
本文介绍了一个程序,在某些时刻确定响铃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求制作一个在某些时刻确定响铃的节目。我可以想到的一种方法是使用循环,但我应该尽量避免使用它,我不知道。我想到了循环,当时间与指定的时间匹配时,它响了铃。我不明白如何让它响起来。他们告诉我,我必须考虑如何开发程序,他们会想到当我返回1或0时如何使铃声响起。这就是事情:如果main()返回任何数字,程序结束.. 。$

任何想法...... ???非常感谢帮助

I was asked to make a program which rang a bell at certain at certain moments. The one way i can think of making it is by using a loop, but i should try to avoid using it and i don''t have any idea. I thought of looping, and when the time matched with the specified one, it rang the bell. I do not have it clear how to make it ring. They told me that i had to think of how to develop the program and they would think of how to make the bell ring when i returned 1 or 0. This is the thing: if main() returns any number, the program finishes...!
Any ideas...??? Help is really much appreciated

推荐答案

使用一个好的,清晰的线程标题很重要。原因是:


*我们希望这个网站成长,我们的许多新成员使用搜索引擎找到网站,通过使用一个好的主题标题,你将帮助我们成长该网站通过帮助我们获得更好的搜索引擎排名。

*使用好的标题也将使您受益,因为论坛的其他成员将不太可能跳过您的线程,它允许专家快速浏览论坛以获得他们知道答案的问题。

*如果线程标题很好,它允许其他用户轻松查看是否有任何线程可能与他们自己当前的问题相关。

*发布适当标题的主题符合每个人的最佳利益,因为主持人花在管理标题上的时间越多,他们可以用来回答所提问题的时间就越少。 br />

-MODERATOR
Using a good, clear thread title is important. The reasons for this are:

* We want this site to grow, many of our new members find the site using a search engine, by using a good thread title you will help us grow the site by helping us get better search engine rankings.
* Using a good title will benefit you too because other members of the forum will be less likely to skip over your thread and it allows the experts to quickly scan through the forum for questions they know the answer to.
* If the threads are well titled it allows other users to easily see if there have been any threads that could be relevant to their own current problem.
* It is in everybody''s best interests to post properly titled threads as the more time the moderators have to spend on managing titles the less time they have available to give answers to the questions posed.

-MODERATOR


您使用的是什么平台和操作系统?
What platform and operating system are you using?



您使用什么平台和操作系统?
What platform and operating system are you using?



也许更重要的是:什么钟?


亲切的问候,


Jos; - )

And maybe even more important: what bell?

kind regards,

Jos ;-)


这篇关于一个程序,在某些时刻确定响铃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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