2015-11-04 72 views

回答

0
cin>>tester1; 
while(!cin) { // If integers are not inputted 
    cin.clear(); // Clear the error flag and stream buffer 
    cin.sync(); 
    cout << "Please enter an integer!!" << endl; 
    cout << " >>"; 
    cin>>tester1; // Input again 
} 
array[counter].registry=tester1; 
+0

http://i.stack.imgur.com/fwabT。 PNG 屏幕 – Anastasiia

+0

它不是幫助=( – Anastasiia

+0

但需要有lengthofArray這是我的陣列 的長度的最大值,我需要有currentSize 例如 [1] [2] [3] [] [] [ ] lengthofArray = 6 currentSize = 3 – Anastasiia

相關問題