438  . STL   

STL: -  

void deallocate (pointer p) ;         ,   

size_type max_size();                 
 difference_type,  
  , 
   

,      -    -
 .

.6.  

C++        string.  -
    basic_sfcring<T>  char.
   -  ,  -
  , , ,   .  -
 ,       .

  stringt.cpp

//     

^include <iostream>
^include <string>
using namespace std;

int main()
{

string sentence, words[10J;           //, 

int pos = 0, old_pos = 0, nwords, i = 0;

sentence = "  23   ";

sentence += " ";

while (pos < sentence.size()) {

pos = sentence.find(' ', old_pos);

words[i++].assign(sentence, old_pos, pos - old_pos);

cout  words[i - 1]  endl;         // 

old_pos = pos + 1;

}

nwords = i ;

sentence = "  C++ ";

for (i = 1; i < nwords - 1; ++i)

sentence += words[i] + ' ';

sentence += "Windows";

cout  sentence  endl;

i
;

         ,
     .    