问题小程序,哪里出的问题?
功能:从第i到j 行输出字符ch .#include <stdio.h>
void chline (char, int, int);
int main (void)
{
int i, j;
char ch;
printf ("请输入要处理的字符:\n");
ch = getchar ();
printf ("请输入从第几行开始处理:\n");
scanf ("%d", &i);
printf ("请输入从第几行开始结束:\n");
scanf ("%d", &j);
chline (ch, i, j);
}
void chline (char ch, int i; int j)
{
int m, n;
for (m = 0; m < i-1; m++)
printf (" ");
for (n = i; n <= j; n++)
putchar (ch);
}