为什么有条件地包含direct.h或sys / stat.h基于_WIN32或__linux__?

为什么有条件地包含direct.h或sys / stat.h基于_WIN32或__linux__?

以下代码将做什么?为什么用它? #ifdef _WIN32 #include direct.h #elif defined __linux__ #include sys/stat.h #endif C中没有可移植的方式来操作文件系统目录.您需要一些提供包装器接口来操作目录的库. (使用系统调用,OS中断例程等) direct.h是Windows的C

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部