Article View: cn.comp.lang
Article #33Re: 看来很多人不会写规范代码……
From: yong
Date: Sat, 07 Jul 2007 02:44
Date: Sat, 07 Jul 2007 02:44
61 lines
5789 bytes
5789 bytes
ֻҪ�õ���ʮ�겻�䣬�̵ķ���Ҳ�Ϳ���ʮ�겻�䣬�¼�����չ�úܿ죬��ʦ����
ȥ�о�����ϵı���һ��ѡ��������鷳�ˡ�
��˵�������У֮�仹��֪����ʲô��ϵ�ء���˵�и���ʦ�Ǵ��������ģ���Ȩ
֮��̲Ķ��ij����������ӿƼ���ѧ���顣
batch wrote:
> �ţ������Ƿ�����������ļ�����鼮���ڲ���ô��������д��ֻ�Ǹ�Ϊ��ֵ��ǣ���������˽���10��(��10���ڱ���õö�����ö�)
> �����ҷ������C��ӵ�һ�浽����涼��һ������벻�淶���������ANSI C�ĸ���������£�����ƫ������㷨������C���?
>
> ��һ����ô�ɾͲ�˵�ˡ��ڶ���ij���������1999�꣬��ʱANSI C99������̨�ˣ�����û��ʽ���֣�����C89Ҳ��������ᵽ�ĸ��ӵ�C++����ʵ�ڲ��ҹ�ά����Ȼ��bool����û���ᵽ��������C++98֮ǰ�Ķ�����
> ����˼����ǣ�����ı��뻷����Ȼ��TC2��1999�갡��VC6��������
>
> ����������ˣ�C++ ȥ����ûʲô����������Ȼά����C89���Ǿ����û��˵������㣬���뻷����Ȼ������TC3�����ʱ��Windows XP�Ѿ��dz�Ϊ�������ܳ�ʱ�䣬ȴ���ڸ�DOS�µĶ�����VC6������Ϊ��ѧ�����ˡ�
>
> �治֪��̷��ǿ�����ٸ���������������
>
> "ChiLL" <arthur.ping.foo@gmail.com> д����Ϣ news:f6kgfk$kl9$1@news.yaako.com...
>> ʵ�ڸ㲻�����ڽ�c��cpp��ô��ôϲ����̷��ǿ����, ����ĺõ��������ȥ��,
>> һ��������.
>> "batch" <chinaonhb@hotmail.com> д����Ϣ����:f6kcal$f5p$1@news.yaako.com...
>>> ������������Ƿ����ˣ�һ�쵽��N���˹�������C���ԵĿγ���ƣ�������ȥ�����룬����
>>> �������ۻ����ǣ����ǵĴ��������ѿ���Ҫ���겻�βŹ֣�ÿ���Ҷ�Ҫ�����Ű�һ�Ρ�
>>> �����DZ�̷��ǿд���飬����Ĵ����Ű桢д�����ܲ��淶����������ͷ�ϵ���������������鼮���淶�ö࣬������������ߣ�Ҳ�ܹ淶��
>>> ��̷��ǿ����Щ�����Դ������ȣ���Զ�ˡ���㲻������ô���������ˡ�
>>>
>>> ��������һ��Ƭ�ϣ�����֮���õ��ǿո��һ�������д��
>>> ����������������������������������������������������������������������������
>>> #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:
<f6mul7$t1r$1@news.yaako.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.yaako.com!not-for-mailReferences:
<f6kcal$f5p$1@news.yaako.com> <f6kgfk$kl9$1@news.yaako.com> <f6kuda$af6$1@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!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.yaako.com!not-for-mail From: yong <luoyong_zh@enorth.com.cn> Newsgroups: cn.comp.lang,cn.comp.lang.c,cn.fan Subject: Re: 看来很多人不会写规范代码…… Date: Sat, 07 Jul 2007 10:44:30 +0800 Organization: Bentium Ltd. (CN99) Lines: 61 Message-ID: <f6mul7$t1r$1@news.yaako.com> References: <f6kcal$f5p$1@news.yaako.com> <f6kgfk$kl9$1@news.yaako.com> <f6kuda$af6$1@news.yaako.com> NNTP-Posting-Host: 221.197.36.7 Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-Trace: news.yaako.com 1183776231 29755 221.197.36.7 (7 Jul 2007 02:43:51 GMT) X-Complaints-To: usenet@news.yaako.com NNTP-Posting-Date: Sat, 7 Jul 2007 02:43:51 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070622) In-Reply-To: <f6kuda$af6$1@news.yaako.com>