#include "stdafx.h"
#include <iomanip>
#include <ostream>
#include <fstream>
using namespace std;
void FillArray(int x[ ], const int Size);
void PrintArray(int x[ ], const int Size);
int main()
{
const int SizeArray = 10;
int A[SizeArray] = {0};
FillArray (A, SizeArray);
PrintAray (A, SizeArray);
return 0;
}
void FillArray (int x[ ], const int Size)
{
for( int i = 0; i < Size; i++);
{
cout << endl << "enter an integer"; //cout undeclared here
cin >> x[i]; //cin and i undeclared here
}
"cout"、"cin"、および "i" はすべてエラー " error C2065: 'cin' : undeclared identifier
" を受け取ります。それらを修正する方法がわかりません。Main、fill array、print array の 3 つの関数が必要です。助けていただければ幸いです。