gpt4 book ai didi

C++ : int _b(di*3) convert to C

转载 作者:行者123 更新时间:2023-11-30 18:58:56 24 4
gpt4 key购买 nike

一位 friend 给了我一些 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;

关于C++ : int _b(di*3) convert to C,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14357001/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com