文件名称:3
-
所属分类:
- 标签属性:
- 上传时间:2014-05-21
-
文件大小:2.87kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
,max函数出现在main函数之前,因此在main函数中调用max函数时,编译系统能识别max是已定义的函数名。 如果把两个函数的位置对换一下,即先写main函数,后写max函数,这时在编译main函数遇到max时,编译系统无法知道max代表什么含义,因而无法编译,按出错处理。
为了解决这个问题,在主函数中需要对被调用函数作声明-, Max function appears before the main function, so when you call max function in the main function, the compiler system can identify max is defined function name if the position of the two functions of a change, the main function of which is to write, write max function, then encountered when compiling the main function max, max compilation system can not know what the meaning of, and therefore can not be compiled, according to error handling. To solve this problem, in the main function called function needs to make a statement
为了解决这个问题,在主函数中需要对被调用函数作声明-, Max function appears before the main function, so when you call max function in the main function, the compiler system can identify max is defined function name if the position of the two functions of a change, the main function of which is to write, write max function, then encountered when compiling the main function max, max compilation system can not know what the meaning of, and therefore can not be compiled, according to error handling. To solve this problem, in the main function called function needs to make a statement
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.