英语好的朋友帮下忙

来源:百度知道 编辑:UC知道 时间:2024/06/01 02:24:28
Standard C and C++ use a feature called function prototyping. With
function prototyping, you must use a description of the types of
arguments when declaring and defining a function. This
description is the “prototype.” When the function is called, the
compiler uses the prototype to ensure that the proper arguments
are passed in and that the return value is treated correctly. If the
programmer makes a mistake when calling the function, the
compiler catches the mistake.
翻译一下....谢谢

标准的C和C++语言都使用了函数原型。所谓函数原型,就是当你在声明和定义一个函数的时候,你必须对函数中的变量类型进行描述。这种描述就是“原型”。当相关函数被引用的时候,编译器会用函数原型来核对函数变量是否合适和返回值是否被正确地调用。如果编程人员在调用函数的时候犯了错误,编译器就会捕捉到这个错误。

呵呵,我这么认真地翻译出来,给我再加点分吧!