【C++】由指針常量和常量指針引起的問題

今天在寫一個C++程序的時候,要用到STL的set容器,並且我想讓它利用自定義的排序準則來實現自動排序。並且set中元素類型是指向自定義的結構體的指針。結果運行老是出錯。html 下面先貼出起初的代碼:ios #include <iostream> #include <set> using namespace std; typedef struct test_t{ int a; int b
相關文章
相關標籤/搜索