登录
首页 » Visual C++ » 5

5

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

  • fttmatlab
    可以简单的实现快速傅里叶变换,这只是部分的,等开通了账号再把其他的上传上来(Can simply fast Fourier transform)
    2010-10-28 15:20:39下载
    积分:1
  • Wiley---Antenna-Theory-and-Design
    ANTENNA THEORY AND DESIGN Revised Edition Robert S. Elliott University of California Los Angeles, California(First published in 1981, Robert S. Elliott s Antenna Theory and Design is one of the most significant works in electromagnetic theory and applications. In its broad-ranging, analytic treatment, replete with supporting experimental evidence, Antenna Theory and Design conveys fundamental methods of analysis that can be used to predict the electromagnetic behavior of nearly everything that radiates. After more than two decades, it remains a key resource for students, professors, researchers, and engineers who require a comprehensive, in-depth treatment of the subject. In response to requests many of our members, IEEE is now reissuing this classic. Newly revised, it once again will be an invaluable textbook and an enduring reference for practicing engineers. The IEEE Press Series on Electromagnetic Wave Theory offers outstanding coverage of the field. It consists of new titles of contemporary interest as well as reissues and revisions of recognized classics by established authors and rese)
    2014-11-13 15:17:14下载
    积分:1
  • Tabbar1.17_cn
    类似与wndtars的国产软件,功能独特(similar wndtars with the homemade software, a unique function)
    2007-06-17 13:44:21下载
    积分:1
  • CART
    matlab中cart决策树源代码,用于数据的分类和预测。(source code in matlab cart decision tree for data classification and prediction.)
    2013-10-28 15:08:58下载
    积分:1
  • advance-Matlab
    有关学习Matlab的书籍,其中也有包括c语言和c++的部分,敬请下载(Learning Matlab books, which also include c of language and c++ the part, please download)
    2013-03-13 14:09:19下载
    积分:1
  • SNACCDLL
    SNACC1.7 C++的动态库,可以做BER PER编码的库(SNACC1.7 C++ Of dynamic libraries, you can make BER PER encoding library)
    2008-01-29 10:43:23下载
    积分:1
  • MatlabaC_CPP(3)
    最新版《精通Matlab与C/C++混合程序设计》( 第三版) 刘维编著- proficient Matlab and C/C mixed Program Design (third edition)(The latest version of Mastering Matlab and C/C++ programming mix (third edition) edited by Richard- proficient Matlab and C/C mixed Program Design (third edition))
    2015-04-21 08:55:23下载
    积分:1
  • Matlab
    MATLAB各种指令综合,可方便使用、查询,非常适合初学者下载。(MATLAB various commands comprehensive, easy-to-use, inquiry, is ideal for beginners to download.)
    2009-07-12 19:03:08下载
    积分:1
  • C_CPP-Programmers-Reference--Third-Edition-By-Her
    C/C++ Programmer s Reference, Third Edition by Herbert Schildt ISBN:0072227222 McGraw-Hill/Osborne © 2003 (358 pages) This guide reviews the rules and syntax of the principle commands that comprise C and its object-oriented cousin, C++. The reference consists of 19 chapters that define operators and the standard input/output, string, character, and more.
    2015-03-20 08:48:03下载
    积分:1
  • The-nonlinear-least-square-method
    c语言非线性最小二乘法的程序,解决非线性最小二乘法问题(The nonlinear least square method)
    2014-12-10 14:46:46下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载