2016년 11월 25일 금요일

CPP 숫자만 입력 받기

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/

댓글 없음:

댓글 쓰기

국정원의 댓글 공작을 지탄합니다.

UPBIT is a South Korean company, and people died of suicide cause of coin investment.

 UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...