Want to pass as a reference. So that i can modify the string inside the function.
void shift(string &s,int i){ int len=strlen(s); for(;s[len]>i;len--){ s[len]=s[len-1]; } }
Aucun commentaire:
Enregistrer un commentaire