它想要某种for循环吗?
赋值说你不应该实现你的函数,所以不,他们不想看到循环.他们想要的只是功能的"签名" - 详细说明以下三件事:
void用于"无返回值")函数头的语法如下:
float compute ( int, double );
^^^^^ ^^^^^^^ ^ ^^^ ^^^^^^ ^
| | | | | |
| | | | | +- Closing parenthesis (required)
| | | | +----- Type of the second argument
| | | +------------ Type of the first argument
| | +--------------- Opening parenthesis (required)
| +-------------------- Function name (must start in a letter)
+--------------------------- Function's return type
Run Code Online (Sandbox Code Playgroud)
注意:这是一个示例,而不是您的作业的答案.