2023-10-25から1日間の記事一覧
作成した関数 使用例 ソースコード 実行結果 作成した関数 //2つのvectorが一致するかどうか判定 template<class T> bool IsOverlapVector(const std::vector<T>& a, const std::vector<T>& b) { //サイズが不一致ならfalseを返す if (a.size() != b.size()) { return false</t></t></class>…
作成した関数 使用例 ソースコード 実行結果 作成した関数 //2つのvectorが一致するかどうか判定 template<class T> bool IsOverlapVector(const std::vector<T>& a, const std::vector<T>& b) { //サイズが不一致ならfalseを返す if (a.size() != b.size()) { return false</t></t></class>…