🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.lang
Article #67

�����ܶ��˲���д�淶���롭��

#67
From: batch
Date: Fri, 06 Jul 2007 03:18
23 lines
2858 bytes
这个星期我真是烦死了,一天到晚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;
}
}
——————————————————————————————————————
Technical Details
Message-ID: <f6kcal$f5p$1@news.yaako.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.yaako.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11047e,87bb6facd4218106,start
X-Google-Thread: 107c7f,87bb6facd4218106,start
X-Google-Attributes: gid11047e,gid107c7f,public,usenet
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!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: �����ܶ��˲���д�淶���롭��
Date: Fri, 6 Jul 2007 11:18:40 +0800
Organization: Bentium Ltd. (CN99)
Lines: 24
Message-ID: <f6kcal$f5p$1@news.yaako.com>
NNTP-Posting-Host: 218.20.169.10
Mime-Version: 1.0
Content-Type: text/plain;
 charset="GB18030"
Content-Transfer-Encoding: base64
X-Trace: news.yaako.com 1183691927 15545 218.20.169.10 (6 Jul 2007 03:18:47 GMT)
X-Complaints-To: usenet@news.yaako.com
NNTP-Posting-Date: Fri, 6 Jul 2007 03:18:47 +0000 (UTC)
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