📄 voidmain.20000530.html
字号:
<html><!-- Mirrored from c-faq.com/ansi/voidmain.20000530.html by HTTrack Website Copier/3.x [XR&CO'2008], Sat, 14 Mar 2009 08:02:59 GMT --><head><title></title></head><body><p>[Despite everything that's been written on this topic,people keep claiming that <TT>void main()</TT> must be okaybecause it ``works for them''.Here is part of a reply I sent to someone who made this claim by mail.]<p>From: scs@eskimo.com (Steve Summit)<br>Date: Tue, 30 May 2000 20:41:28 -0700 (PDT)<br>Subject: Re: <TT>int main()</TT> vs <TT>void main()</TT><!-- <200005310341.UAA25347@mail.eskimo.com> --><p>Declaring <TT>main()</TT> as <TT>void</TT> is kind of like saying ``ain't''.Everyone will know what you mean, but it's not ``correct English'',and people who care about correct English will think less of youfor saying it.<p>Suffice it to say that, just because <TT>void main()</TT> works for you,doesn't mean it's right. If you run a red light in the middle ofthe night and no policeman arrests you, does that mean it's okayto run red lights? If you have the ball in a basketball game andyou take three steps without dribbling and the ref doesn'tnotice, does that mean that traveling is legal in basketball?<p> Steve Summit<br> scs@eskimo.com<p>--<br>Programming Challenge #6: Don't just fix the bug.<br>See <a href="http://www.eskimo.com/~scs/challenge/">http://www.eskimo.com/~scs/challenge/</a>.</body><!-- Mirrored from c-faq.com/ansi/voidmain.20000530.html by HTTrack Website Copier/3.x [XR&CO'2008], Sat, 14 Mar 2009 08:02:59 GMT --></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -