我正在使用Big Nerd Ranch书籍Objective-C编程,它首先让我们在前几章中用C语言编写.在我创建的一个程序中,我使用了sleep功能.它在书中告诉我要把它放在#include <stdlib.h>下面#include <stdio.h>.这应该摆脱警告说"隐含声明功能'睡眠'在C99中无效".但是由于某些原因我放#include <stdlib.h>了之后,警告并没有消失.这个问题并没有阻止程序运行良好,但我只是好奇#include我需要使用它!
#include <stdlib.h>
#include <stdio.h>
#include
c sleep
c ×1
sleep ×1