且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从 C++ 中的函数返回结构?

更新时间:2022-01-13 01:06:21

你的范围有问题.在函数之前定义结构体,而不是在函数内部.

You have a scope problem. Define the struct before the function, not inside it.