resize

Resizes the string to size n.

  void resize(size_type n);

  void resize(size_type n, charT c);  
Remarks

If the size of the string is longer than size_type n, it shortens the string to n, if the size of the string is shorter than n it appends the string to size n with charT c or charT() if no filler is specified.