ARITHMETIC1 [C++20 - STL] Chapter 05. Arithmetic (산술) GitHub : https://github.com/developeSHG/CPP20-STL/commit/342f4dcb3b6b0785b93a2bd700a140547d039af9 Arithmetic (산술) · developeSHG/CPP20-STL@342f4dc developeSHG committed Jul 28, 2023 github.com 게임에서 정수를 생각하면, 사실 음수로 떨어지는 정수가 많이 없을 수 있다. (hp, 경험치, 골드 등등) 양의 숫자만 가지는게 일반적. 그럼에도 불구하고, unsigned를 사용하지 않고, int 사용을 많이 한다. 그럼 unsigned랑 int를 섞었을 때, 일어날 수 있는 문제를 살펴보자. #include using namespace std; #include #.. 2023. 7. 28. 이전 1 다음