Article View: csu.cs.200
Article #371Re: Re: Basic C++ question
From: michael maitan
Date: Wed, 04 Feb 1998 00:00
Date: Wed, 04 Feb 1998 00:00
13 lines
1104 bytes
1104 bytes
I wanted to point out that function prototypes can be placed in functions as well. This is useful if you do not want them to be global. In some of the programs in CS151 we were actually required to place the prototypes in the main() function. I also noticed there were ruturn statements in the functions used. Since the functions were defined with void before the function name, the function is not expected to return anything through its name. This will cause a syntax error when compiled. (Ex. void function() returns nothing through its name... int function2() returns an int through its name) I hope this is of help to any who read this. : ) -Mike (http://holly.colostate.edu/~brnruber)
Technical Details
Message-ID:
<6b92v9$2pvs@yuma.ACNS.ColoState.EDU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 127144,f08d1a1544bcc5dc X-Google-Attributes: gid127144,public From: maitan@cs.colostate.edu ( michael maitan) Subject: Re: Re: Basic C++ question Date: 1998/02/04 Message-ID: <6b92v9$2pvs@yuma.ACNS.ColoState.EDU> X-Deja-AN: 321918841 Organization: Colorado State University, Fort Collins, CO 80523 Newsgroups: csu.cs.200