需要帮忙 [英] need help

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

问题描述

在c中写一个程序。

write a program in c.

推荐答案

7月10日,10:14,kevin< k ... @nospam.invalidwrote:
On 10 Jul, 10:14, kevin <k...@nospam.invalidwrote:

用c编写一个程序。
write a program in c.



你忘记了魔法p单词


-

Nick Keighley


第0行出错:懒惰的程序员。

you forgot the magic "p" word

--
Nick Keighley

Error on line 0: Lazy programmer.


kevin写道:
kevin wrote:

用c写一个程序。
write a program in c.



如果这是一些练习而你想作弊,那么请转到

< http://kernel.org>在那里你可以得到一个用C写的特别好的程序来源。


但如果你的标记不好,就不要被夸大...


如果它比一个完整的操作系统内核更简单:


#include< stdio.h>

int main(int argc,char * argv [])

{

int i;

for(i = 0; i< 42; ++ i){

printf("%d,不是问题的问题...... \ n,i);

}

返回++ i;

}


应该这样做,但我不认为你将从中获益

例子。


说真的:如果这是一个练习,而且你是一个全新手,那么

只是哭泣帮助根本不会帮助你。人们可以做的任何事情

给你一些书面的代码示例和一些解释

给它。


这些东西都是通用的被称为教科书,可以在

建筑物中找到,并在书店购买,来自网上的形式,其中一个是< http:// amazon。 com> ;.


但是,这里给出的解释和教科书都不会给你带来

的工作。你仍然需要阅读文本和

来理解它们。我强烈建议你阅读这本书,

,如果是'C',那将是The C Programming

Language然后是Kernighan和Ritchie。


一旦你对某件事有疑问,你就不会理解阅读

书了,欢迎你来在这里问一下,只要你提供详细的

信息,告诉你哪个部分有问题。


Wolfgang Draxinger

- -

电子邮件地址有效,Jabber:他****** @ jabber.org ,ICQ:134682867

If that''s some exercise and you want to cheat, then go to
<http://kernel.org>, there you can get the sources of a
particulary good programm written in C.

But don''t be surpreised, if you got a bad mark...

If it shall be a bit simpler then a full blown OS kernel:

#include <stdio.h>
int main(int argc, char *argv[])
{
int i;
for(i = 0; i < 42; ++i) {
printf("%d, not the awnser to the question...\n", i);
}
return ++i;
}

That should do it, but I don''t think you will profit from that
example.

Seriously: If this is a exercise, and you''re a total newbie, then
just crying "help" won''t help you at all. Anything people can do
is giving you some written examples of code and some explanation
to it.

Such things are commnly called textbooks and can be found in
buildings called libraries and bought in bookshops, that come
also in online form, one of them being <http://amazon.com>.

But neither, an explanation given here, nor a textbook will take
the work from you. It''s still up to you to read the texts and
also to understand them. I highly suggest, you read the book,
and in the case of ''C'' that would be "The C Programming
Language" by Kernighan and Ritchie then.

Once you''ve questions on thing you didn''t understand reading the
book, you''re welcome to ask here, as long as you give detailed
information about with which part you got a problem.

Wolfgang Draxinger
--
E-Mail address works, Jabber: he******@jabber.org, ICQ: 134682867


kevin写道:
kevin wrote:

在c中写一个程序。
write a program in c.



将下面的程序保存在名为test.c的文件中。调用你最喜欢的

编译器并享受。


#include" test.c"

main(){}

Save the program below in a file called test.c. Invoke your favourite
compiler and enjoy.

#include "test.c"
main(){}


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

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