int getInt()
{
int x = 0;
while (!(cin >> x))
{
cin.clear();
cin.ignore(numeric_limits<streamsize>::max(), '\n');
cout << "숫자를 입력해 주세요: " << endl;
}
return (x);
}
cin >> a; //nono
a = getInt();
컬렉션은 여기
http://www.hellgeeks.com/arraylist-in-c-with-examples/
댓글 없음:
댓글 쓰기
국정원의 댓글 공작을 지탄합니다.