c语言问题求解
编写一个程序,输入一篇文章,该文章小于1000字符,从中指定字符串换成另外一个。#include<stdio.h>
#include<string.h>
#define N 1000
int main(void)
{
char s[N],rs[N],ns[N];
int lena,lenb,lenc;
printf("Please input a string:\n");
gets(s);
printf("\n");
printf("Please input the replaced string:\n");
gets(rs);
printf("\n");
printf("Please input the new string:\n");
gets(ns);
printf("\n");
lena=strlen(s);
lenb=strlen(rs);
lenc=strlen(ns);
for(i=0;i<lena;i++)
}
写到这里写不下去了...大佬们求解