While Steven was reading other messages, Jack Everett wrote:
JE> Hmmm This may sound a little strange to you guys that have been doing
JE> this for awhile..But can someone please explain the use of void and
JE> tell me what it does when it is on the left, right and on both sides..
JE> I would appreciate it..
Okay... explaining protocalls...
Protocalls are statements that tells the compiler what to expect if there
are more than one function (which is main) the types of variables and
return-type to be expected so the memory spots are reserved for them.
();
return type - tells what type of value the function is returning
void - not returning anything
char - returning a character
int - returning a integer
float - returning a real number (have decimals)
double - returning a longer real number
(These are the common ones)
function name - the function call name, where a function uses to call this
function. (it could be just about anything other than reserved
words)
parameter list - lists the variables passed into the function and their
datatypes... (datatypes are the five listed above)
I sure hope this helps a bit... if you have any questions, mail here
or E-mail me at SpewMuffin@juno.com... and I'll be happy to explain in more
detail if you're still confused.
Steven Lei
From: Las Vegas, Nevada, USA
E-mail = SpewMuffin@Juno.Com
... "What?!? This isn't the Files section?!?"
___ Blue Wave/DOS v2.30 [NR]
--- PCBoard (R) v15.21/M 2
---------------
* Origin: The Board running PCBoard 15.21 (702) 221-0083 (1:209/222)
|