0_0_23329486_17434.cpp: In function 'int main()':
0_0_23329486_17434.cpp:19:13: error: 'intx' was not declared in this scope
intx=310,y=420;//初始的坐标
^
0_0_23329486_17434.cpp:19:22: error: 'y' was not declared in this scope
intx=310,y=420;//初始的坐标
^
0_0_23329486_17434.cpp:20:13: error: 'intcur_dir' was not declared in this scope
intcur_dir = 1;//初始的方向始终向右
^
0_0_23329486_17434.cpp:21:17: error: 'inti' was not declared in this scope
for(inti=0;i<com.size();i++)
^
0_0_23329486_17434.cpp:21:24: error: 'i' was not declared in this scope
for(inti=0;i<com.size();i++)
^
0_0_23329486_17434.cpp:24:17: error: 'charc' was not declared in this scope
charc=com[i];//命令
^
0_0_23329486_17434.cpp:25:17: error: 'intnew_dir' was not declared in this scope
intnew_dir ;//新的方向
^
0_0_23329486_17434.cpp:26:19: error: 'c' was not declared in this scope
if(c=='A')
^
0_0_23329486_17434.cpp:28:20: error: 'new_dir' was not declared in this scope
new_dir = dir_A[cur_dir];
^
0_0_23329486_17434.cpp:28:36: error: 'cur_dir' was not declared in this scope
new_dir = dir_A[cur_dir];
^
0_0_23329486_17434.cpp:29:20: error: 'x' was not declared in this scope
x+=dx[new_dir];//新方向X增量
^
0_0_23329486_17434.cpp:34:20: error: 'new_dir' was not declared in this scope
new_dir = dir_V[cur_dir];
^
0_0_23329486_17434.cpp:34:36: error: 'cur_dir' was not declared in this scope
new_dir = dir_V[cur_dir];
^
0_0_23329486_17434.cpp:35:20: error: 'x' was not declared in this scope
x+=dx[new_dir];
^
0_0_23329486_17434.cpp:38:16: error: 'cur_dir' was not declared in this scope
cur_dir=new_dir;//更新当前方向
^
0_0_23329486_17434.cpp:38:24: error: 'new_dir' was not declared in this scope
cur_dir=new_dir;//更新当前方向
^
0_0_23329486_17434.cpp:39:22: error: 'x' was not declared in this scope
cout<<x<<" "<<y<<"lineto"<<endl;
^
|