登录
首页 » Visual C++ » 5

5

于 2009-03-15 发布 文件大小:2KB
0 309
下载积分: 1 下载次数: 2

代码说明:

  一道程序编译顺序的考题,涉及到函数调用的先后顺序及运算符号的优先级等问题。下面我展开给你讲。 C的程序编译总是从main函数开始的,这道题的重点在“fun((int)fun(a+c,b),a-c)) ”语句。 系统首先要确定最外层 fun()函数的实参,第一个参数的确定需要递归调用fun()函数(不妨称其为内层函数)。内层函数的两个参数分别为x=a+b=2+8=10、y=b=5,执行函数体x+y=10+5=15,于是得外层函数的参数x=15。其另一个参数y=a-c=2-b=-6,再次执行函数体,得最终返回值x+y=15+(-6)=9。 (Compiling together the sequence of test procedures, involving the sequence of function calls and operator symbols, such as the priority problem. Now I give you to start speaking. Procedures for C compiler always start from the main function and at这道题the focus of " fun ((int) fun (a+ c, b), ac)) " statement. System must first determine the most outer layer of fun () function of real parameters, the first parameters of recursive calls required fun () function (may be called the inner function). Inner function separately for the two parameters x = a+ b = 2+8 = 10, y = b = 5, to execute the function body x+ y = 10+5 = 15, then the outer function parameters were x = 15 . Its another parameter y = ac = 2-b =- 6, once again to execute the function body may eventually return the value of x+ y = 15+ (-6) = 9.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • WM_CHARmessageanalysis
    这是对WM_CHAR消息分析的程序,希望对大家有帮助(This is a WM_CHAR news analysis program, and they hope to have everyone help)
    2007-10-23 14:56:00下载
    积分:1
  • random(mt19937)
    说明:  一个随机数产生器(mt19937) 计算物理中Monte Carlo方法中的基本条件 周期为2^19937(a random number generator (mt19937) Computational Physics Monte Carlo methods of the basic conditions for the cycle 2 ^ 19937)
    2005-12-02 19:30:12下载
    积分:1
  • Matlab-Coder-VC
    一个实例说明matlab coder的使用方法,可以实现vc++中调用matlab生成的cpp文件进行两个数的乘法计算。(An example shows the use of matlab coder, can call matlab in vc++ cpp files generated multiplication of two numbers.)
    2011-11-27 14:53:50下载
    积分:1
  • VC-Matlab-hunhebiancheng
    对利用vc和matlab的混合编程技术进行介绍(For mixed use vc and matlab programming techniques are introduced)
    2011-09-17 12:00:10下载
    积分:1
  • chap08
    針對單輸入與雙輸入模糊溫度控制系統,以C語言程式分別實現(For single-input and two-input fuzzy temperature control system to realize, respectively, C language programs)
    2007-10-29 18:16:36下载
    积分:1
  • testmyadd2
    应用matlab编译器mcc实现,matlab和vc联合编程的经典例子(Application matlab mcc compiler implementation, matlab and vc classic example of joint programming)
    2010-08-20 16:10:20下载
    积分:1
  • 1
    说明:  这是一个有关频谱分析的程序,可实时的画出任意信号的频谱,通过测试程序无误,欢迎下载(This is a spectrum analysis procedure can draw an arbitrary signal in real-time spectrum, through the test procedure correctly, please download the)
    2009-11-29 16:00:41下载
    积分:1
  • 4678
    此是MATLAB7.0程序设计的那本书的源代码,希望对大家能有所帮助。(This book MATLAB7.0 programming source code, I hope that we can help.)
    2013-04-01 12:34:03下载
    积分:1
  • libsvm-mat-2.91-1
    说明:  支持向量机的C++源代码包,用机器学习的方法处理优化问题,可以作为matlab的工具箱。(C++ code for proceeding SVM problems!)
    2011-04-07 11:54:48下载
    积分:1
  • q
    说明:  简单的画折线功能,单击右键示图取消,按住control键重置起点。(The painting features a simple broken line, right-click Diagram canceled, hold down the control key to reset the starting point.)
    2009-11-23 15:55:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载