vector::resize
void resize(size_type n, T x = T());
The member function ensures that size() henceforth returns n. If it must lengthen the controlled sequence, it appends elements with value x.
See the related sample program.
このブラウザーはサポートされなくなりました。
Microsoft Edge にアップグレードすると、最新の機能、セキュリティ更新プログラム、およびテクニカル サポートを利用できます。
vector::resize
void resize(size_type n, T x = T());
The member function ensures that size() henceforth returns n. If it must lengthen the controlled sequence, it appends elements with value x.
See the related sample program.