一段問題代碼: int number = -1; for(size_t i = 0; i < number; i++) { printf("---------------\n"); } 原因: C++ for循環中無符号整型名額導緻的問題 C++ for循環中無符号整型名額導緻的問題