17th Jul 2020, 7:11 AM
Zihan Sabah
Zihan Sabah - avatar
9 odpowiedzi
+ 1
Hi Zihan Sabah , Just wanted to know, is this thread still in relation to your previous one below 👇 If it is, can you say clearly what solution are you looking for? cause making duplicate posts is not recommended ... https://www.sololearn.com/Discuss/2397227/?ref=app
17th Jul 2020, 7:35 AM
Ipang
+ 1
I'll try, But first, give me an example, cause I don't understand clearly the "remove a bunch of characters" part. And tell me about that error you got too, so I can test it out ...
17th Jul 2020, 8:05 AM
Ipang
+ 1
Okay, let's assume these strings "learning.c++@sololearn.com" "hello world it's 17th of July" What becomes the output?
17th Jul 2020, 8:15 AM
Ipang
+ 1
Okay, so if I understood correctly here, only alphabets (case doesn't matter) and spaces is desired. My idea would be to utilize the `isalpha` and `isspace` function from header <cctype>. For details on what these functions do, please refer below 👇 http://www.cplusplus.com/reference/cctype/isalpha/ http://www.cplusplus.com/reference/cctype/isspace/
17th Jul 2020, 8:23 AM
Ipang
0
Ipang i had edited that code and found a another problem. i wanted to remove one char from one char from a string. now i want to remove a bunch of characters from a string and faced an error. by the way, do u know the solution?please help a noob here ;-;
17th Jul 2020, 7:57 AM
Zihan Sabah
Zihan Sabah - avatar
0
Ipang lets say we only want to use letters nothing else such as numbers or @^@&.... etc. how to remove this kind of chars from a string? can we use ascii?
17th Jul 2020, 8:12 AM
Zihan Sabah
Zihan Sabah - avatar
0
i dont even know why im getting this error. everything looks correct to me
17th Jul 2020, 8:16 AM
Zihan Sabah
Zihan Sabah - avatar
0
the output i want to be is "learningcsololearncom" "hello world its th of July"
17th Jul 2020, 8:17 AM
Zihan Sabah
Zihan Sabah - avatar
0
okay
17th Jul 2020, 8:35 AM
Zihan Sabah
Zihan Sabah - avatar