#include <string> void push_back( char c );
The push_back() function appends c to the end of the string.
For example, the following code adds 10 characters to a string:
string the_string; for( int i = 0; i < 10; i++ ) the_string.push_back( i+'a' );
When displayed, the resulting string would look like this:
push_back() runs in constant time.