getchar 和 gets 用不了
话说为啥我用getchar 和 gets 用不了啊
程序代码:#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define P printf("%d\n",b[i][o]);
void input()
{
int n,i=0,o;
int a[200]={0},j[200]={0};
char b[200][7]={0};int c[200][7]={0};
scanf("%d",&n);
;
;
for(;i<n;i++)
{gets(b[i]);
for(o=0;o<7;o++)
{
c[i][o]=(b[i][o]-48);P
if(b[i][o+1]=='\0')
break;
}
}
}
int check(int a)
{
int i=2,j;
for(j=0;i<a;i++)
{
if(a%i==0)
j++;
}
if(j)
return 0;
else
return 1;
}
void main()
{
void input();
input();
}






