You should declare the function before you use it
所在版块:求学狮城 发贴时间:2003-05-13 19:18

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
main() is an exception. All the other functions need to be declared before use. Just put your function prototype at the beginning of the program.

BTW: It's better to use <iostream> than <iostream.h>
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

最新推出专栏《倾听索罗斯》 欢迎大家前来捧场!

Yeah!
 相关帖子 我要回复↙ ↗回到正文
A C++ problem about array joyce   (625 bytes , 419reads )
This program is not pure C++ Flying   (0 bytes , 151reads )
You should declare the function before you use it 香陵居士   (202 bytes , 182reads )
只要把下面的函数体整个放到main前面就行了。 Livecn   (19 bytes , 179reads )
也算是declare了 香陵居士   (86 bytes , 171reads )
is it not backward compatible de mah? MrDJay   (38 bytes , 225reads )
It seems that you are really new to C/C++ 香陵居士   (75 bytes , 176reads )
thanks :$ MrDJay   (23 bytes , 161reads )
come in>> 我行故我   (490 bytes , 193reads )
what is this for? MrDJay   (19 bytes , 202reads )
guess it is the problem MrDJay   (0 bytes , 150reads )