Message from C, C++ discussions

December 2019

— Purge complete.

— 

Why don't work?
void SprositiPolzovatela()
{
for(unsigned int i=1;i<5;i++)
{
cout << "OK? (y/n) ";
cin >> c;
// bolshie i malenkie bukvi
c = tolower(c);
if(c == 'y' || c == 'n') i=9000;
else i--;
}}

— That's arab for me 😂😂😂

— What the hell...
Debug it. Look it step by step.

— Thank you rose

— ?

— Just resize inner vector

— Because array is data structure of constant size

— I know resizing a vector but how to resize the inner one ?

— mtx[idx].resize(new_size);

— Or in a loop to create rectangle matrix

— But, this I'll have to do for every index