另一个愚蠢的错误。 (无尽的循环) [英] another stupid c bug. (endless for loop)

查看:67
本文介绍了另一个愚蠢的错误。 (无尽的循环)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想弄清楚一些C代码是如何工作的......我需要制作一个

循环来测试16位字的所有可能值。

惊喜惊喜...... C糟透了......再一次:D lol ... C是如此糟糕

语言每次都令我惊讶:D


看看这个狗屎:


unsigned short int i;


//我把我设置成一个大的因此我们可以看到包裹发生。

for(i = 65500; i< 65536; i ++)

{

//无限循环

}


for(i = 65500; i< = 65535; i ++)

{

//无限循环

}


for(i = 65500; i< 65536; ++ i)

{

//无限循环

}


for(i = 65500; i< = 65535; ++ i)
{

//无限循环

}


那里......我尝试了所有可能性...... 。


原始循环类似于:

for(i = 0; i< = 65535; i ++ )

{

//无限循环

}


哈! C SUCKS BALLS


Man ...只是一个简单的pascal循环,我本来就已经完成了。


var

i:word;

for i:= 0到65535 do

begin


end;
< br $> b $ b大声笑......我甚至不用测试那个代码....


我知道100%肯定它会正常工作;)


随着C一个人永远不会知道哈哈哈哈哈哈。


现在去你自己哈哈哈哈哈哈哈哈哈哈哈


I was just trying to figure out how some C code worked... I needed to make a
loop to test all possible values for a 16 bit word.

Surprise Surprise... C sucks at it... once again :D lol... C is such a bad
language it amazes me everytime :D

Just look at this shit:

unsigned short int i;

// I set i to a large value so one can see the wrap occuring.
for (i=65500; i<65536; i++)
{
// endless loop
}

for (i=65500; i<=65535; i++)
{
// endless loop
}

for (i=65500; i<65536; ++i)
{
// endless loop
}

for (i=65500; i<=65535; ++i)
{
// endless loop
}

There... I tried out all possibilities...

The original loop was something like:
for (i=0; i<=65535; i++)
{
// endless loop
}

Ha ! C SUCKS BALLS

Man... just a simple pascal loop and I would have been done already.

var
i : word;
for i:=0 to 65535 do
begin

end;

Lol... I don''t even have to test that code....

I know 100% sure it will work just fine ;)

With C one never knows lol hahahahaha.

NOW GO FUCK YOURSELF hahahahahaha


推荐答案

2004年8月27日星期五18:43:23 +0200,Skybuck Flying

< no **** @ hotmail.com>写道:


我有新闻给你 - 这里的语言并不是那么
愚蠢。
On Fri, 27 Aug 2004 18:43:23 +0200, "Skybuck Flying"
<no****@hotmail.com> wrote:

I have news for you - it isn''t the language that''s showing its
stupidity here.

那里......我尝试了所有可能性......

There... I tried out all possibilities...




我本来只试过一个 - 有效的那个。


去其他地方去玩。如果您需要C程序,请聘请程序员。


-

Al Balmer

Balmer Consulting
< a href =mailto:re ************************ @ att.net> re ************ ************@att.net


糟糕的语言每次都令我惊讶[ sic]:D

看看这个[亵渎亵渎]:

unsigned short int i;

//我把我设置成一个大的因此,人们可以看到包裹发生[原文如此]。
for(i = 65500; i< 65536; i ++)
{
//无限循环
}
<剪断>更可怕的代码如下。


--------------------------------- --------------

来自:The Oracle

To:Troll,


特此撤销您的编译器权限。

想想看,你的文字也是如此。

编辑权限。


你好甲骨文一篇关于二元的论文

数论。

------------------------- -----------------------


这让我想起那个把链锯带回来的男人它,

说这是世界上最糟糕的机器,花了他几个小时来通过两英尺的日志来削减
。推销员启动它,看看是什么原因是错误的,男人喊道:嘿,那是什么声音?!

...... ............................................ ...... ....发表于AtlantisNews - 探索每个新闻组<
bad language it amazes me everytime[sic] :D

Just look at this [ profanity removed ]:

unsigned short int i;

// I set i to a large value so one can see the wrap occuring[sic].
for (i=65500; i<65536; i++)
{
// endless loop
} <snip> more horrible code follows.

-----------------------------------------------
From: The Oracle
To: Troll,

Your compiler privileges are hereby revoked.
Come to think of it, so are your text
editor privileges.

You Owe the Oracle an essay on binary
number theory.
------------------------------------------------

This reminds me of the man who took a chain-saw back to return it,
saying that it was the worst machine in the world and took him hours to
cut through a two foot log. The salesman started it up to see what was
wrong and the man yelled "Hey, What''s that sound?!"
.................................................. .......... Posted via AtlantisNews - Explore EVERY Newsgroup <
http:/ /www.AtlantisNews.com - 闪电快!! <
http://www.AtlantisNews.com -- Lightning Fast!! <<
访问更多内容*无限制*最佳保留<<<
Access to More Content * No Limits * Best Retention <<<





" Alan Balmer" <人****** @ att.net>在消息中写道

news:jq ******************************** @ 4ax.com ...

"Alan Balmer" <al******@att.net> wrote in message
news:jq********************************@4ax.com...
2004年8月27日星期五18:43:23 +0200,Skybuck Flying
< no **** @ hotmail.com>写道:

我有新闻给你 - 它不是那种在这里表现出愚蠢的语言。
On Fri, 27 Aug 2004 18:43:23 +0200, "Skybuck Flying"
<no****@hotmail.com> wrote:

I have news for you - it isn''t the language that''s showing its
stupidity here.

那里。 ..我尝试了所有可能性......

There... I tried out all possibilities...



我只尝试过一个 - 有效的。

去其他地方去玩。如果您需要C程序,请聘请程序员。

- Al Balmer
Balmer Consulting
再************************ @ att.net




大声笑


来自:超人

到:没有鸡巴的男人


哦明智的一个......你能用你所有的智慧来启发我吗


这篇关于另一个愚蠢的错误。 (无尽的循环)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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