It can be done like: std::vector<int> numbers; int x; std::cin >> x; while(x>0) { numbers.push_back(x%10); x/=10; } ...
確定! 回上一頁