+ 1

String code in C

1. Write a function to cancel all of the characters c in the string [s] with the same number of these sketches 2. Write the main function by which the string retrieves the character to call the function to cancel the character. please help because I do not understand this assignment. well thank you :)

24th Jan 2018, 12:10 PM
Peter Bilka
Peter Bilka - avatar
9 ответов
+ 5
If I understand correctly, you want: abcdefcgh to become: abdefgh
24th Jan 2018, 3:21 PM
John Wells
John Wells - avatar
14th Mar 2018, 2:19 AM
John Wells
John Wells - avatar
+ 2
for loop until entire string is looked at if character isn't c copy character to output string increment to next output string position
14th Mar 2018, 1:56 AM
John Wells
John Wells - avatar
+ 2
Updated with comments explaining what is happening. Questions or does it make sense?
14th Mar 2018, 2:35 AM
John Wells
John Wells - avatar
+ 1
thank you 🙂
14th Mar 2018, 2:21 AM
Peter Bilka
Peter Bilka - avatar
+ 1
i now underestand thanks for your time
14th Mar 2018, 2:37 AM
Peter Bilka
Peter Bilka - avatar
0
yes
14th Mar 2018, 1:50 AM
Peter Bilka
Peter Bilka - avatar
0
and how i do that in code 🙂
14th Mar 2018, 1:51 AM
Peter Bilka
Peter Bilka - avatar
0
i underestand but how you do that with pointer and dynamic int or char? can you show me directly in code?
14th Mar 2018, 1:58 AM
Peter Bilka
Peter Bilka - avatar