登录
首页 » Visual C++ » 5

5

于 2009-03-15 发布 文件大小:2KB
0 266
下载积分: 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 个回复

  • CPossionEquatl
    经典泊松方程的matlab数数值求解程序代码。可直接使用。 (Matlab the number of values ​ ​ of the classical Poisson equation solver code. Can be used directly.)
    2012-07-23 14:34:12下载
    积分:1
  • jisuanqi
    实现加减乘除sqr和abs函数的任意整型和浮点型运算(Addition and subtraction and multiplication and division to achieve abs function sqr arbitrary integer and floating-point operations)
    2009-06-07 20:57:15下载
    积分:1
  • Untitled1
    matlab绘制阵列正六边形。采用角度方法。(Draw a regular hexagon array matlab. Using the angle method.)
    2014-01-27 17:04:28下载
    积分:1
  • youchengbianma
    用c++实现的对游程编码的译码以及编码操作。对信息论一块的游程编码的理解具有一定参考价值。(C++ with the realization of run length coding decoding and encoding operation. For information on the run length encoding a piece of understanding has a certain reference value.)
    2014-08-26 22:20:27下载
    积分:1
  • Chaos-power-load-forecasting
    说明:  电力负荷的混沌预测方法 电力负荷的方法很多~~本文是基于混沌(Chaos power load forecasting method)
    2011-04-06 13:37:26下载
    积分:1
  • fv
    说明:  这是一个计算镜头视场的软件,非常简单但是很实用。(This is a calculation of the lens field of view of the software, very simple but very practical.)
    2009-01-14 11:04:18下载
    积分:1
  • matlab-toolbox
    Matlab 工具,各类积分,二次定积分,gquad2dggen等(Matlab tool, all kinds of points, the second definite integral, gquad2dggen etc.)
    2013-08-25 21:22:26下载
    积分:1
  • MatlabDlg
    matlab与VC混合编程,输入方程,与自变量范围,就可以计算方程的值,与倒竖值。(mixed programming with VC matlab input equation, and the scope of the independent variables, we can calculate the value equation, and the inverted vertical value.)
    2010-12-16 09:57:53下载
    积分:1
  • pwm
    matlab仿真PWM控制直流电机,仿真曲线还可以(matlab simulation of the PWM control of DC machine, the simulation curve can also)
    2012-07-04 22:40:44下载
    积分:1
  • vc_matcom_dll
    VC和MATLAB的混合编程技术之一,matcom生成dll,vc成功调用的例子(One of a combination of VC and MATLAB programming technology, matcom generate DLL, VC example of a successful call )
    2013-09-18 14:29:03下载
    积分:1
  • 696518资源总数
  • 106253会员总数
  • 14今日下载