在一列中,我有"1;2;3;6-9“ 我需要将这个字符串放在这样的数组中(1,2,3,6,7,8,9) select range from my_table 返回 | range || 1;2;3;6-9 | 我需要跑步 select id from my_another_table where id in("1;2;3;6-9") | id |
|----|
我需要输入4个字符串,因此需要输入的字符串数量是指定的,但每个字符串的长度是不同的。因为我必须执行特定于字符的操作,所以它必须是二维字符数组,如果我没有错的话。如何在c++中对此进行编码。参考:问题在spoj中4 // number of test casesprogress noticeable
如何在C++中输入?