#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
}
The "cout", "cin", and "i" all get the error "error C2065: 'cin' : undeclared identifier
". I have no idea how to fix them. I have to have three functions: Main, fill array, and print array. Help is appreciated.