gsr
2008-09-21 21:53:44 UTC
For resize(n, char c) if n is greater than the current length, it is expanded by adding as many as instances of c.
If i want to add in a unique set of char c how will i be able to do it. Eg
a=A B C
a.resize(5, 'x')
output A B C x x
Now if i want to resize a such that my output is A B C F 0 how will be be able to do it since we cant do a. resize(5, ('F','0')).
Any help or suggestion is appreciated...thanks