Code: Select all
#include <iostream>
#include <cstdio>
using namespace std;
int main(){
cout << "initializing arrays" << endl ;
int array1 [60], array2 [60];
// zeroall(array1, array2);
cout << "Operand 1:" << endl;
cin >> array1;
cout << "Operand 2:" << endl;
cin >> array2;
cout << "Operands 1 and 2:" << endl << array1 << endl << array2 << endl;
return 0;
}
But for some reason, it fails to compile with this message:
Code: Select all
9 C:\Users\Shinichi Kudo\Documents\highprec\highprec.cpp no match for 'operator>>' in 'std::cin >> array1'
I don't understand what I need to do here. I'm pretty sure I referred to the array as an operand in the correct manner (without the square brackets after the name). Any help? This should be a simple problem.