没有条件陈述的程序 - 可能吗? [英] Program without conditional Statements - Possible ?

查看:57
本文介绍了没有条件陈述的程序 - 可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hie ..


如果,for,while,do,切换,任何人都知道如何在不使用

条件语句的情况下编写C程序,转到甚至

condotional声明?如果有人

帮助我,对我来说将是一个很大的帮助...


紧急 - 请尽快回复!


谢谢,Raghu

hie..

Do any one knows how to write a C program without using the
conditional statements if, for, while, do, switch, goto and even
condotional statements ? It would be a great help for me if someone
helps me...

Urgent - Please reply soon !

Thanks, Raghu

推荐答案

ra ********* @ vit.ac.in (Raghavendra RAV,CSS India)写道:
ra*********@vit.ac.in (Raghavendra R A V, CSS India) writes:
任何人都知道怎么写一个C程序没有使用
条件语句if,for,while,do,switch,goto甚至
condotional语句?如果有人帮助我,对我来说将是一个很大的帮助...
Do any one knows how to write a C program without using the
conditional statements if, for, while, do, switch, goto and even
condotional statements ? It would be a great help for me if someone
helps me...




int main(void){return 0; }


Martin



int main (void) { return 0; }

Martin


Raghavendra RAV,CSS India< ra ********* @ vit.ac 。在>潦草地写道:
Raghavendra R A V, CSS India <ra*********@vit.ac.in> scribbled the following:
hie ..
任何人都知道如何在不使用
条件语句的情况下编写C程序if,for,while,do,switch,goto和甚至
condotional声明?如果有人帮助我,对我来说将是一个很大的帮助...
紧急 - 请尽快回复!
谢谢,Raghu
hie.. Do any one knows how to write a C program without using the
conditional statements if, for, while, do, switch, goto and even
condotional statements ? It would be a great help for me if someone
helps me... Urgent - Please reply soon ! Thanks, Raghu




是的,我知道怎么做。这简直太容易了。这是一个这样的

计划:


/ *代码在这里开始* /

int main(void){

返回0;

}

/ *代码在这里结束* /


-

/ - Joona Palaste(pa*****@cc.helsinki.fi)-------------芬兰-------- \

\ - http://www.helsinki.fi/ ~palaste ---------------------规则! -------- /

微软做出一些不吸的事情的那一天可能是他们开始制造吸尘器的那一天。

- Ernst Jan Plugge



Yes, I know how to do this. It''s surprisingly easy. Here''s one such
program:

/* CODE STARTS HERE */
int main(void) {
return 0;
}
/* CODE ENDS HERE */

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"The day Microsoft makes something that doesn''t suck is probably the day they
start making vacuum cleaners."
- Ernst Jan Plugge


Raghavendra RAV,CSS India写道:
Raghavendra R A V, CSS India wrote:
任何人都知道如何编写C程序而不使用
条件语句if,for,while,do,switch,goto甚至
condotional语句?如果有人帮助我,对我来说将是一个很大的帮助...
Do any one knows how to write a C program without using the
conditional statements if, for, while, do, switch, goto and even
condotional statements ? It would be a great help for me if someone
helps me...




void main(){puts(" hello world"); }


有问题吗?


关键是是的,这是可能的,但你必须自己写一下

,因为只有你知道该程序应该做什么...


作出决定......但如果那是你要求的,那就问......


-

gabriel



void main() { puts("hello world"); }

Any questions?

The point is that yes it''s possible, but you have to write it yourself
because only you know what the program is supposed to do...

Maybe you''re asking "how do I make a decision in a program without actually
making a decision"... But if that''s what you''re asking for, then ask...

--
gabriel


这篇关于没有条件陈述的程序 - 可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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