mercredi 6 décembre 2017

How to generate a string with user specifying the length in c++?

include

include

int main()

{

int size;

string str;

cin>>str;

string ( size, str);

cout<< str;

return 0;

}

Aucun commentaire:

Enregistrer un commentaire