浙大OJ 2987Misspelling WA 坐等大侠指点Misspelling is an art form that students seem to excel at.Write a program that removes the nth character from an input string.InputThe first line of input contains a single integer N,(1

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 18:08:41
浙大OJ 2987Misspelling WA 坐等大侠指点Misspelling is an art form that students seem to excel at.Write a program that removes the nth character from an input string.InputThe first line of input contains a single integer N,(1

浙大OJ 2987Misspelling WA 坐等大侠指点Misspelling is an art form that students seem to excel at.Write a program that removes the nth character from an input string.InputThe first line of input contains a single integer N,(1
浙大OJ 2987Misspelling WA 坐等大侠指点
Misspelling is an art form that students seem to excel at.Write a program that removes the nth character from an input string.
Input
The first line of input contains a single integer N,(1

浙大OJ 2987Misspelling WA 坐等大侠指点Misspelling is an art form that students seem to excel at.Write a program that removes the nth character from an input string.InputThe first line of input contains a single integer N,(1
我觉得你思路有点错误,程序也写的不对,最主要的,是给定了一个字符串,然后去掉指定位置的一个字符,用一个循环,将a[m-1],a[m],a[m+1].到字符串结束用后面的字符覆盖前面的字符,就相当于去掉了制定位置的字符,用一重循环就可以实现,另外你输出的序号有问题,而且你的字符串读入貌似也不对.我改了你的程序,并且AC了的代码如下:
#include
int main()
{
\x05int n,i,m,k,j;
\x05char ch[90];
scanf("%d",&n);
\x05for(i=0;i