void GetarrayElements(int a[]){ int k=0; while (true){ cout <<"to exit just type a value which is above 100 like ex. 101" << endl; cout<< "give me the "<< k <<"th element "; cin >> a[k] >> endl; if (a[k]<=100 && a[k]>=0){ k+=1; } else{ break; } } }
I am trying to read some input values from 0 to 100 inclusive in an array, and I got this error. "no match for operator ->". What could be wrong?
source share