C++把輸入的一連串逗號分隔的數字存到數組

需求: 輸入一連串數字,數字之間逗號隔開,把數字存到數組或者向量裏。ios 代碼: #include <iostream> #include <string> #include <vector> #include "stdio.h" using namespace std; int main () { string s; while(cin>>s){ vect
相關文章
相關標籤/搜索