K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
#include <iostream> #include <string> using namespace std; int main() { string s = "hello,world"; int pos = s.find(','); string res = s.substr(pos + 1, 3); cout << res.size() << res << endl; return 0; }
3wor
5world
3llo
5,worl