View Single Post
Old 09-29-2002, 04:56 PM   #6
silvia S13
 
Join Date: Aug 2002
Posts: 41
Trader Rating: (0)
silvia S13 is an unknown quantity at this point
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Kreator @ Sep. 29 2002,3:40)</td></tr><tr><td id="QUOTE">First of all, you are supposed to put the type when u declare the function:
e.g - blahblah(int a)

second, i think you wonna return (a==5), cuz (a=5) just assignes 5 to a and returns true. and u just do "return ..." instead of "bool return". the program alrdy knows it's bool when u declared the function.

Hope this helps</td></tr></table><span id='postcolor'>
Thanks a lot, I figured it out already, it was a mistake in the book about the "bool return", it's just return. &nbsp;Also, I forgot to declare.
silvia S13 is offline   Reply With Quote