namespace aa { int a = bb::b; } namespace bb { int b = aa::a; }
这样第2行肯定会报错[Error] 'bb' has not been declared,因为bb没有在aa前面定义
2
[Error] 'bb' has not been declared
bb
aa
函数可以用void dfs();这样解决,那么请问struct和namespace怎么解决
void dfs();
struct
namespace
蟹蟹