Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一位朋友给了我一些 C++ 代码以转换为 C。你能帮我理解它的作用吗?
for (int _b(di*3), ddi = _b; ddi < _b+3; ++ddi) Specifically this bit : int _b(di*3) // _b is not a function;
这只是一个构造函数调用,即 C++ 的说法:
int _b = di * 3;