#include<iostream>
using namespace std;
int main()
{
const int maxNum = 6;
int n, a[maxNum], i, j;
cout << "请为数组元素赋值(6个整数):\n";
for (n = 0; n < maxNum; n++)...
#include<iostream>
using namespace std;
int area(int x, int y)
{
int a;
a = x * y;
return a;
}
int main()
{
int length, width;
cout << "请输入长方形的长度和宽度:";
...
#include<iostream>
using namespace std;
int area(int x, int y)
{
int a;
a = x * y;
return a;
}
int main()
{
int length, width;
cout << "请输入长方形的长度和宽度:";
...