【C++】由指针常量和常量指针引起的问题

今天在写一个C++程序的时候,要用到STL的set容器,并且我想让它利用自定义的排序准则来实现自动排序。并且set中元素类型是指向自定义的结构体的指针。结果运行老是出错。html 下面先贴出起初的代码:ios #include <iostream> #include <set> using namespace std; typedef struct test_t{ int a; int b
相关文章
相关标签/搜索