TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CLIFF RHODES
from: ALEXANDER NAUMOCHKIN
date: 1997-05-28 16:56:00
subject: Re: IO streams

Tuesday May 27 1997 23:07, Cliff Rhodes wrote to Frank Masingill:
 FM>> void main(int argc, char *argv[])
 CR> // Ahem, int main(...)
Hehe :-)  Again - read ANSI C++ WP 3.6.1.2
 FM>> outfile.put(ch);
 FM>> }
 CR>   return 0;
Hehe :-) Again and again - read ANSI C++ WP 3.6.1.5
5 A return statement in main has the effect of leaving the main function
  (destroying  any  objects with automatic storage duration) and calling
  exit with the return value as the argument.  If  control  reaches  the
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^
  end  of  main  without  encountering a return statement, the effect is
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  that of executing
  ^^^^^^^^^^^^^^^^^
          return 0;
          ^^^^^^^^^
Alexander
-=[ Russian Windows NT Users Group ]=-
--- xMail/beta
---------------
* Origin: ASH Project, Moscow (fidonet 2:5020/59)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.