CvMat* nextimg = 0;
int firstframe;


firstframe=nextimg==0;

如果我不输入“== 0”,则会返回以下警告:
[Warning] assignment makes integer from pointer without a cast

最佳答案

它缩短了相当于

int firstframe;
if (nextimg == 0) {
    firstframe = 1;
}
else {
    firstframe = 0;
}

关于c - C语言的Opencv库。这条指令到底是什么int = pointer == 0; ?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14441969/

10-12 07:36