我已经一年多没有用 C++ 编码了,我看不到这段代码中的错误。
它说 cin 函数有错误,no such operator >>
int main()
{
double * array[25];
bool exitCode = false;
cout <<"Enter in your Array"<<endl;
do{
for(int i = 0; i < 24; i++)
{
cout<< "Enter your float number";
cin >> array[i];
cout << "Are there any more inputs?: ( Y or N )";
cin >> exitCode; // error is here
}
}while(exitCode == false);
return array;
}