填写C 程序中缺少的位置以获取所需的输出

fill missing places in c++ program to get desired output

本文关键字:获取 输出 位置 填写 程序      更新时间:2023-10-16

用适当的关键字填充空白,根据测试用例获得所需的输出。(语言使用C )

样本测试用例

                     input      output
Test Case 1           4           square = 16, ++ square = 25 
test case 2           -8           square =64, ++ square = 49  

#include <iostream>
using namespace std;
______ int SQUARE(int x) { ______ x * x; }
​
int main() {
    int a , b, c;
    cin >> a ;
    b = SQUARE(a);
    cout << "Square = " << b << ", ";
    c = SQUARE(++a);
   cout << "++ Square = " << c ;
    return 0;
}

第二个空白处是"返回"

首先可能是"内联"或什么都没有