这是我的map的声明
然后在一个类的成员函数中把相应的数据插入时,点运算符标识出错了,看提示貌似是第二个参数出错了,但我不管怎么改(把指针换引用,加括号等),都改不对,请问是哪里出问题了呢?
另:另一个函数使用另外的map<string,int>没问题,所以应该不是头文件之类的问题
光阴似箭催人老,日月如移越少年。
Determine whether the header file of Table is referenced
No, don’t use Table*, just use Table
The reason is that the Table class has not been defined when pt_id_table (type map<int,Table*>) was declared, so an error occurred
Determine whether the header file of Table is referenced
No, don’t use Table*, just use Table
The reason is that the Table class has not been defined when pt_id_table (type map<int,Table*>) was declared, so an error occurred