0

Please help me, do correct this code, where is wrong?

#include <iostream> using namespace std; void str_deldigit(char *str) int main() {    char s1[20]="123";     char s2[20]="abced";     char s3[20]="123ABC";     char s4[20]="abced123";     char s5[20]="abc123edf";     char s6[20]="1";     char s7[20]="a";         cout<<"s1:"<<s1<<endl;     str_deldigit(s1);     cout<<"s1:"<<s1<<endl;         cout<<"s2:"<<s2<<endl;     str_deldigit(s2);     cout<<"s2:"<<s2<<endl;         cout<<"s3:"<<s3<<endl;     str_deldigit(s3);     cout<<"s3:"<<s3<<endl;         cout<<"s4:"<<s4<<endl;     str_deldigit(s4);     cout<<"s4:"<<s4<<endl;         cout<<"s5:"<<s5<<endl;     str_deldigit(s5);     cout<<"s5:"<<s5<<endl;     cout<<"s6:"<<s6<<endl;     str_deldigit(s6);     cout<<"s6:"<<s6<<endl;         cout<<"s7:"<<s7<<endl;     str_deldigit(s7);     cout<<"s7:"<<s7<<endl

17th Mar 2020, 4:08 AM
ABDUVAPOVA Perizat
1 Respuesta
+ 3
Please save your code in SoloLearn and attach the saved code link instead of pasting the code as raw text. As you probably noticed, your code is truncated due to character limits. This won't happen if you share saved code link instead. Always prefer to share a saved code link when your code is big (e.g. more than 10-15 lines of code) 👍 Follow this guide in case you didn't know how to share links 👇 https://www.sololearn.com/post/74857/?ref=app
17th Mar 2020, 4:45 AM
Ipang