如何在名为f2.cpp的另一个类中访问struct strName [英] How to acess struct strName in another class named f2.cpp
本文介绍了如何在名为f2.cpp的另一个类中访问struct strName的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
f1.h
f1.h
class A
{
int i;
char i2;
struct strName
{
char b;
int c;
}
union str1
{
int p;
char t;
}
union str2
{
int p1;
char t1;
}
}
如何在另一个名为f2.cpp的类中访问struct strName .... ?????
How to acess struct strName in another class named f2.cpp....?????
推荐答案
http://stackoverflow.com / questions / 6882637 / using-struct-in-different-cpp-file [ ^ ]
这篇关于如何在名为f2.cpp的另一个类中访问struct strName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文