【问题标题】:Loop conditional and exit work in linear and binary search [duplicate]线性和二进制搜索中的循环条件和退出工作[重复]
【发布时间】:2026-01-17 07:40:01
【问题描述】:

25 6 C:\Users\DELL\Desktop\Dev C++\binary.c [警告] 不兼容 内置函数'exit'的隐式声明

我正在使用 Dev c++,在这里你可以看到它说:

内置函数'exit'的隐式声明不兼容

我真的厌倦了这个错误。

【问题讨论】:

    标签: c exit


    【解决方案1】:

    exit 函数在 stdlib.h 库中定义。

    那么你需要在你的程序中添加这个#include <stdlib.h>

    【讨论】: