CString str = _T("[3/10]");
int a, b;
_stscanf(str, _T("[%d/%d]"), &a, &b);
TRACE("a = %d, b = %d\n", a, b);
결과는..
a = 3, b = 10
CString str = _T("[3/10]");
int a, b;
_stscanf(str, _T("[%d/%d]"), &a, &b);
TRACE("a = %d, b = %d\n", a, b);
결과는..
a = 3, b = 10