gpt4 book ai didi

c++ - 是>?或
转载 作者:IT老高 更新时间:2023-10-28 23:12:54 26 4
gpt4 key购买 nike

我在 gcc 4.2.1 不接受的文件(非连续行)中遇到了以下 C++ 代码行:

int frame = blk <? mBlkCnt-1;
mInsCnt = blk <? mBlkCnt;
mInsCnt = mInsCnt+1 <? mBlkCnt;
const int to_read = (mFileSz-byte_off) <? mBlkSz;

两者<?>?在代码中的各个地方使用。它们似乎是分配两个值中较小(或较大)值的简写,但我从未见过这种运算符组合。关于这是什么的任何想法?

最佳答案

他们被称为 min and max operators并且是早期版本 gcc 中的语言扩展。

它们不再受支持。

关于c++ - 是>?或 <?任何 C++ 方言中的合法运算符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3949818/

26 4 0

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