sprintf用法 int t = 1000; char s[N]; sprintf(s, "%d", t); string str = s; if (str.find('0') != string::npos);