QT other 是 0x30

引发了异常: 读取访问权限冲突。
other 是 0x30

file_operation 类

有个public成员变量 main_path

程序运行:

class 1中 ,file_operation  c1 = new file_operation();  

class 2中 ,file_operation  c2= new file_operation();   c2->main_path 报错0x30,c2初始化后,main_path实际是没有赋值的

 

posted @ 2025-02-24 15:35  txwtech  阅读(9)  评论(0)    收藏  举报