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