作者:王责宇0218 | 来源:互联网 | 2023-09-24 13:43
I made a code and my target is to put spacewhere the input word was found in a sentence. i neet to replece the small word with space
我做了一个代码,我的目标是在一个句子中找到输入词的位置。我要用空间来回答这个小问题。
like:
如:
Three witches watched three watches
tch
output:
输出:
Three wi es wa ed three wa es
I made this code:
我做了这个代码:
#include
#define S 8
#define B 50
void main() {
char small[S] = {"ol"};
char big[B] = {"my older gradmom see my older sister"};
int i = 0, j = 0;
for (i = 0; i
3 个解决方案