摘要: #include <iostream> #include <string> #include <raylib.h> #include <raymath.h> #include <vector> #include "Vector2.hpp" #include "Vector3.hpp" #includ 阅读全文
posted @ 2026-02-21 17:22 仰望星河Leon 阅读(3) 评论(0) 推荐(0)
摘要: 自定义类,若想要可以进行比较运算,需要重载6种操作符:==、!=、<、<=、>、>=。 C++20起,operator<=>()可用于自定义类的6种比较操作符的自动生成。 #include <compare> 返回类型 std::strong_ordering //有less、greater、equ 阅读全文
posted @ 2026-02-21 11:38 仰望星河Leon 阅读(5) 评论(0) 推荐(0)