🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.lang
Article #71

Re: �����ܶ��˲���д�淶���롭��

#71
From: batch
Date: Fri, 06 Jul 2007 08:27
30 lines
3540 bytes
排版只是对我起作用,其他人仍然不怎么样去理会

"云海天潮" <xmxsuperstar@gmail.com.usenet> 写入消息 news:f6kniv$ueb$4@news.yaako.com...
> 
> 用indent重新排版
> batch wrote:
>> 这个星期我真是烦死了,一天到晚N多人过来问我C语言的课程设计,还让我去看代码,晕了
>> 更让我眼花的是,他们的代码真是难看得要命,看完不晕才怪,每次我都要重新排版一次。
>> 都怪那本谭浩强写的书,里面的代码排版、写法都很不规范,我现在手头上的两本翻译过来的书籍,规范得多,看其它国内作者,也很规范。
>> 而谭浩强的那些代码跟开源代码相比,差远了。真搞不懂他怎么能这样误导别人。
>> 
>> 这是其中一个片断,换行之后用的是空格,而且还“顶格”写:
>> ——————————————————————————————————————
>> #include<stdio.h>
>> #include<stdlib.h>
>> #define NULL 0
>> void opena();
>> struct consumer
>> { char name[4];
>>  char sex;
>>  long num;
>>  long money;
>>  long tel_num[20];
>>  char ID_num[20];
>> }client;
>> 
>> void main()  
>> {char ch;
>> printf("***************************************************\n");
>> printf("************         Huali-bank System   ***********\n");
>> printf("*****************************************************\n");
>> printf("欢迎使用!!^_^你可以选择一下服务:\n");
>> printf("1.银行开户:\n");
>> printf("2.取钱\n");
>> printf("3.退出\n");
>> printf("请选择\n");
>> ch=getchar();
>> system("cls");
>> switch (ch)
>> {case '1':opena();break;
>> case '2':break; 
>> case '3':exit(0);break;
>> }
>> }
>> ——————————————————————————————————————
> 
> -- 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> YHTCH 云海天潮
> http://xmxsuperstar.spaces.live.com
> 闲看庭前花开花落,漫随天外云卷云舒
Technical Details
Message-ID: <f6kudo$afm$1@news.yaako.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.yaako.com!not-for-mail
References: <f6kcal$f5p$1@news.yaako.com> <f6kniv$ueb$4@news.yaako.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11047e,87bb6facd4218106
X-Google-Thread: 107c7f,87bb6facd4218106
X-Google-Attributes: gid11047e,gid107c7f,public,usenet
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.yaako.com!not-for-mail
From: "batch" <chinaonhb@hotmail.com>
Newsgroups: cn.comp.lang,cn.comp.lang.c,cn.fan
Subject: Re: �����ܶ��˲���д�淶���롭��
Date: Fri, 6 Jul 2007 16:27:17 +0800
Organization: Bentium Ltd. (CN99)
Lines: 31
Message-ID: <f6kudo$afm$1@news.yaako.com>
References: <f6kcal$f5p$1@news.yaako.com> <f6kniv$ueb$4@news.yaako.com>
NNTP-Posting-Host: 218.20.84.13
Mime-Version: 1.0
Content-Type: text/plain;
 charset="GB18030"
Content-Transfer-Encoding: base64
X-Trace: news.yaako.com 1183710458 10742 218.20.84.13 (6 Jul 2007 08:27:38 GMT)
X-Complaints-To: usenet@news.yaako.com
NNTP-Posting-Date: Fri, 6 Jul 2007 08:27:38 +0000 (UTC)
In-Reply-To: <f6kniv$ueb$4@news.yaako.com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480