🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.lang
Article #20

Re: ��ά��ٿ��Ͽ���������һ�λ�����C99��C++

#20
From: ChiLL
Date: Sun, 29 Jul 2007 13:22
29 lines
3408 bytes
����Ľ���, �����ڿ�ʼc++��Ҫ�ٹ��Ŀ��Ǽ���c��,
���ԭ����Ҫ����c���������ƹ�c++�Ļ�,
������ȫ�Ѿ���ʱ�����߿��Էֵ�������.
"batch" <chinaonhb@hotmail.com> д����Ϣ����:f8hj8o$p89$1@news.yaako.com...
> (Ӣ��汾����ֱ�ӷ��ʣ������IJ���)
>
> ��C++��Ŀ�£�����C++��C99��
>
> Some incompatibilities have been removed by the latest (C99) C standard, 
> which now supports C++ features such as // comments and mixed declarations 
> and code. However, C99 introduced a number of new features that C++ does 
> not support (such as variable-length arrays, native complex-number types, 
> and compound literals), so the languages may be diverging more than they 
> are converging. (However, at least some of the new C99 features will 
> likely be included in the next version of the C++ standard, C++0x.)
>
> �dz��ڴ�C++����C����������Ҳ��һЩC++�Ƚ���֧�ֵ���Ŀ��
> �����K&R C��ANSI C��ת�䣬����Ը�⣬Ҳ���˷��ԡ�
> K&R C��ʱ����������ANSI C89�����?
> for (int i = 0;����;����)
> {
>    ��������
> }
>
> printf ("%d", i);
>
> C89�ϸ�ܶ࣬������Ϊ���ɶȼ����˲���(���ɶȴ���C/C++��һ������)��C++�ַſ����ơ�
> ˭֪��C99��ʱ��ſ�����Ƹ�࣬���ֽ�֧�֡��䳤���顢long long���͡��ڽ��ĸ���֧��(C++��ͨ������֧�ֵģ�����C����)��ָ����ʼ����Ŀ����
> ��Ȼ��������Ϊ��Щ�����Dz���Ҫ��(Google������ʱ����������˵���ɬ�Ѷ�����ô�ֲ�˵C90���ƹ���أ�Ҫ���ɾ�Ҫ��һ���Ĵ��)������K%R Cʱ�������Ϊvoid����û��Ҫʹ�ã�����ʵ���أ� 
Technical Details
Message-ID: <f8i4ae$kgf$1@news.yaako.com>
Path: arc1-ca.pugleaf.net!g2news2.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
References: <f8hj8o$p89$1@news.yaako.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11047e,466bf6ecab8a2900
X-Google-Thread: 107c7f,466bf6ecab8a2900
X-Google-Attributes: gid11047e,gid107c7f,public,usenet
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news2.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: "ChiLL" <arthur.ping.foo@gmail.com>
Newsgroups: cn.comp.lang,cn.comp.lang.c,cn.fan
Subject: Re: ��ά��ٿ��Ͽ���������һ�λ�����C99��C++
Date: Sun, 29 Jul 2007 21:22:15 +0800
Organization: University of Electronic Science and Technology of China
Lines: 31
Message-ID: <f8i4ae$kgf$1@news.yaako.com>
References: <f8hj8o$p89$1@news.yaako.com>
NNTP-Posting-Host: 221.237.59.20
X-Trace: news.yaako.com 1185715343 21007 221.237.59.20 (29 Jul 2007 13:22:23 GMT)
X-Complaints-To: usenet@news.yaako.com
NNTP-Posting-Date: Sun, 29 Jul 2007 13:22:23 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original