玩具谜题 未完成

#include<iostream>
#include<cstdio>
using namespace std;
struct node
{
int zt;//表示小人的状态 0朝向圈内 1朝向圈外
char name[1001];
}a[10001];//小人
struct zl
{
int fx;//表示该条指令所指的方向 0向左 1向外
int bs;//在该方向上所走的步数
}b[10001];
string
int main()
{
int n;//小人个数
int m;//指令个数
for(int i=1;i<=n;i++)
{
cin>>a[i].zt;
scanf("%s",a[i].name);
}
for(int i=1;i<=m;i++)
{
cin>>b[i].fx;
cin>>b[i].bs;
}
int tot=1;//表示此时已经进行了now条指令
while(tot!=m+1)
{
if([b[tot].fx==0])//向左
{

}
else if(b[tot].fx==1)//向右
{


}
}
return 0;
}

posted @ 2017-03-14 19:19  自为风月马前卒  阅读(197)  评论(0编辑  收藏  举报

Contact with me