[MMORPG Game Development with C++ and Unreal Series] Part 1: Introduction to C++ Programming
Practice Problems (Snail)
연습문제(달팽이) 21분:59초 질문
Written on
·
351
0
int nextX = x+ dx[dir];로 선언해주셨는데, 만약에 cin >> N 값에 3을 입력하면 dir이 Right의 방향을 가리키고 있다가 down으로 nextX=3이 되면 방향이 전환된 후 int nextX = x+ dx[dir];을 거치면 nextX 가 2값을 갖게 되는 데 왜 그런지 잘 모르겠습니다..