Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
と を使用QtしC++、リストを持っています (QList<int>)
Qt
C++
(QList<int>)
list<<1<<3<<4<<5<<9<<22<<32<<45
これを作りたい
ユーザーが 4 を入力した場合、これを作成します。
list1<<1<<3<<4<<5 list2<<9<<22<<32<<45
ユーザーが 3 を入力した場合、3 つのリストを分割したいなど。どうすればよいですか?