首页 | 本学科首页   官方微博 | 高级检索  
     检索      

C语言中的函数应用时易出现的错误
引用本文:蒋春蕾,杨双,岳富强,刘辉.C语言中的函数应用时易出现的错误[J].西昌学院学报(自然科学版),2005,19(3):90-93.
作者姓名:蒋春蕾  杨双  岳富强  刘辉
作者单位:1. 西昌学院,四川,西昌,615022
2. 桂林航天工业高等专科学校,广西,桂林,541004
3. 成都电子高专,四川,成都
基金项目:致谢:感谢罗明英副教授的指导!
摘    要:C语言程序完全由函数组成。除程序必须包含的main函数(主函数)和语言本身提供的库函数外,用户还可根据需要定义任意多个自己的函数。通过主函数调用其他函数(库函数,用户自定义函数),其他函数之间的相互调用,完成相应的程序功能。C语言程序一般是由大量的小函数而不是由少量大函数构成的,这样可以让各部分相互充分独立,并且任务单一。文章对函数在C语言中的应用时易出现的错误进行了分析。

关 键 词:变量  函数  函数调用  参数  参数传递  返回值
文章编号:1673-1891(2005)03-0090-04
收稿时间:2005-07-01
修稿时间:2005年7月1日

Mistake Apting to Appear when the Function is used in Language C
JIANG Chun-lei,YANG Shuang,YUE Fu-qiang,LIU Hui.Mistake Apting to Appear when the Function is used in Language C[J].Journal of Xichang College,2005,19(3):90-93.
Authors:JIANG Chun-lei  YANG Shuang  YUE Fu-qiang  LIU Hui
Institution:1.Information and technology department of Xichang CoUege,Xichang 615022, Sichuan; 2.Aerospale Industry College of Guilin Guilin 541004, Guang Xi; 3. Chengdu Electromechanical College, Chengdu 61000, Sichuan
Abstract:C language procedure is totally made up of function. Except main f unction (main function) that procedure must include and language storehouse func tion that itself offers, users can also define a lot of one's own function acco rding to their needs. Transfer other function through main function (the functio n of the storehouse , user's self-defining function), transferring each other b etween other functions, finish the corresponding procedure function. C language procedure is generally by a large amount of small function instead of forming by a small amount of great function, can let every part sufficient independence ea ch other so, and the task is single . The mistake apt to appear has been analyze d at the time of the application of function in C language in this article.
Keywords:Variable  Function  Function is transferred  Parameter  The parameter is transmitted  Returning value
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《西昌学院学报(自然科学版)》浏览原始摘要信息
点击此处可从《西昌学院学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号