#include<iostream>
#include<cstring>
using namespace std;
char p[11][10];
int main()
{
//
//freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
//
int n,x,y;
while(scanf("%d%d%d",&n,&x,&y)==3&&n)
{
int r,c,cnt=0;
char type;
for(int i=0;i<n;i++)
{
scanf("%c%d%d",&type,&r,&c);
printf("type=%c,r=%d,c=%d,cnt=%d\n",type,r,c,++cnt);
}
printf("end\n");
}
//printf("n=%d,x=%d,y=%d",n,x,y);
return 0;
}
我输入
2空格1空格4回车G空格10空格5回车
然后就出现
type=
,r=-858993460,c=-858993460,cnt=1
type=G,r=10,c=5,cnt=2
end
这是什么情况?