Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!astemgw!choshi!frf!zhoumi From: zhoumi@nff.ncl.omron.co.jp (Zhou Mi) Newsgroups: comp.lang.c Subject: Correct or Not or Old-fashioned or Bug Message-ID: Date: 20 May 91 09:20:38 GMT Sender: news@frf.omron.co.jp Distribution: comp.lang.c Organization: OMRON Corporation, Kyoto, Japan. Lines: 55 When I am working in a project, I find that someone in my group write the following program. Though it seems work well, I still wonder if it is correct or better ?? -----file 1 (named pro_all.h) --------- int i; ------file 2 (named pro_main.c) -------- #include "pro_all.h" void main() { sub1(); sub2(); sub3(); } --------- file 3 (named pro_sub1.c) -------- #include "pro_all.h" void sub1() { i = 1; } --------- file 4 (named pro_sub2.c) --------- #include "pro_all.h" void sub2() { i++; } --------- file 5 (named pro_sub3.c) --------- #include "pro_all.h" void sub3() { i += 3; } If anyone has the result, please mail to me. my E-mail address is: zhoumi@nff.ncl.omron.co.jp -- +------ From: Zhou Mi ||=======||{}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{} ||\ / ||{} Zhou Mi, RZE, Systems R&D LAB., OMRON Co. {} || \ / ||{} E-mail: zhoumi@nff.ncl.omron.co.jp {} || \/ ||{} TEL: 075-951-5111 x 3176 {} || /\ ||{}=============================================================={} || / ||{} What is AI ? This is the very question that AI machine can {} ||/ ||{} answer, but one can not !! {} ||=======||{}______________________________________________________________{}