Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
您缺少每个case>案例的break
case>案例
break
switch(ch) { case 'w': y--; werase(win); box(win, 0, 0); mvwprintw(win, y, x, "#"); break; case 's': y++; werase(win); box(win, 0, 0); mvwprintw(win, y, x, "#"); break case 'a': x--; werase(win); box(win, 0, 0); mvwprintw(win, y, x, "#"); break; case 'd': x++; werase(win); box(win, 0, 0); mvwprintw(win, y, x, "#"); break; default: break; }
Your are missing a break for each case
case
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
您缺少每个
case>案例
的break
Your are missing a
break
for eachcase