恩乔伊 [英] Njoy

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

问题描述

char * my_tolower(char * string)

{

char * tmp = string;


for(; * string!=''\'''; string ++)

* string = tolower(string [0]);


return tmp;

}


;)

char *my_tolower(char *string)
{
char *tmp = string;

for (; *string != ''\0''; string++)
*string = tolower(string[0]);

return tmp;
}

;)

推荐答案

ma **** @ gmail.com 写道:

char * my_tolower(char *字符串)

{

char * tmp = string;


for(; * string!=''\\'0' '; string ++)

* string = tolower(string [0]);


返回tmp;

}


;)
char *my_tolower(char *string)
{
char *tmp = string;

for (; *string != ''\0''; string++)
*string = tolower(string[0]);

return tmp;
}

;)



什么??


这看起来类似于我看到的一些代码最近在另一个帖子中,但是你把它作为一篇新文章发布了。主题是Njoy吗?应该是什么意思?b $ b意味着什么?你有问题吗?


-

Keith Thompson(The_Other_Keith) ks***@mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *< http://用户。 sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长

What??

This looks similar to some code I saw recently in another thread, but
you posted it as a new article. Is the subject "Njoy" supposed to
mean something? Did you have a question?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


Keith Thompson说:< br>
Keith Thompson said:
ma****@gmail.com 写道:

> char * my_tolower(char * string)
{*> char * tmp = string;

for(; * string!= ''\'''; string ++)
* string = tolower(string [0]);

返回tmp;
}

; )
>char *my_tolower(char *string)
{
char *tmp = string;

for (; *string != ''\0''; string++)
*string = tolower(string[0]);

return tmp;
}

;)



什么??


这看起来类似于我最近在另一个帖子中看到的一些代码,但是

你把它作为一篇新文章发布。主题是Njoy吗?应该是什么意思?b $ b意味着什么?你有问题吗?


What??

This looks similar to some code I saw recently in another thread, but
you posted it as a new article. Is the subject "Njoy" supposed to
mean something? Did you have a question?



笑脸可能意味着它应该是一个笑话 - 事实上,它是完全开玩笑的,因为它甚至不会编译。这是相当典型的

文章最近大量涌入的无聊的人使用gmail

地址。过滤gmail海报很容易,但是它有点像b
令人讨厌(虽然值得讨厌)不得不提防

有条不紊的人碰巧使用gmail。


-

Richard Heathfield< http://www.cpax.org.uk>

电子邮件: -万维网。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

The smiley probably means it''s supposed to be a joke - and indeed, it''s
a complete joke, since it won''t even compile. It''s fairly typical of
articles by the recent heavy influx of clueless people with gmail
addresses. Filtering gmail posters out was easy, but it''s a bit of a
nuisance (albeit a worthwhile nuisance) having to watch out for the
clueful people who happen to use gmail.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999


Richard Heathfield< rj*@see.sig.invalidwrites:
Richard Heathfield <rj*@see.sig.invalidwrites:

Keith汤普森说:
Keith Thompson said:

> ma **** @ gmail.com 写道:

>> char * my_tolower(char * string)
{char / tmp = string;

for(; * string!=''\'''; string ++)
* string = tolower(string [0]);

返回tmp;
}

;)
>>char *my_tolower(char *string)
{
char *tmp = string;

for (; *string != ''\0''; string++)
*string = tolower(string[0]);

return tmp;
}

;)


什么??

这看起来类似于我最近在另一个线程中看到的一些代码,但是
你把它作为新文章发布。主题是Njoy吗?应该意味着什么?你有问题吗?


What??

This looks similar to some code I saw recently in another thread, but
you posted it as a new article. Is the subject "Njoy" supposed to
mean something? Did you have a question?



笑脸可能意味着它应该是个笑话 - 事实上,它是完全开玩笑的,因为它甚至不会编译。


The smiley probably means it''s supposed to be a joke - and indeed, it''s
a complete joke, since it won''t even compile.



[snip]


但它确实可以编译。当我添加一个#include< ctype.h>时,它会编译

而不会出错(使用带有相当严格选项的gcc)。

Even如果没有#include,编译器只会假定tolower

返回一个int,至少在C90模式下。你得到了什么错误信息?


至于这是一个玩笑,笑话通常都要好笑。


-

Keith Thompson(The_Other_Keith) ks***@mib.org < http://www.ghoti。 net / ~kst>

圣地亚哥超级计算机中心< *< http://users.sdsc.edu/~kst>

"我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长

[snip]

But it does compile. When I add a "#include <ctype.h>", it compiles
without error (using gcc with a reasonably strict set of options).
Even without the #include, the compiler merely assumes that tolower
returns an int, at least in C90 mode. What error messages do you get?

As for it being a joke, jokes are usually required to be funny.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


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

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