@StarSky
2017-06-15T09:38:13.000000Z
字数 277
阅读 937
工作日记
C++
I want to use A.struct in B,but CLion can't find it at the beginning.Then I found that #include "A.h"
have been lost in B.h.
And you should use the namespace the delcare the struct rather than instance.
ref:
https://stackoverflow.com/questions/5372865/c-structs-across-classes