草庐IT

myotherstruct

全部标签

c++ - 声明 typedef 类型

structmystruct{inti;doublef;};typedefmystructmyotherstruct;//theother.cppfilestructmystruct;//OK,thisisacorrectforwarddeclaration.structmyotherstruct;//errorC2371(invc2k8):'myotherstruct':redefinition;differentbasictypes大家好。为什么我不能转发声明myotherstruct? 最佳答案 myotherstruct标识