我已经从linux计算机更改为Windows,并且无法编译我的代码,因为这两个操作系统不共享相同的头文件。 由于unistd.h中不包含明显,视觉C不知道什么read(),write(),close(),socklen_t()和bzero()功能。谁能帮我这个? 我GOOGLE了这一点:Is there a replacement for unistd.h for Windows (Visual
我有读取功能的C++类的文件,即假定一个文件(就像Python做)的整个内容读入缓冲区。然而,当我试图从unistd.h中调用read函数,我得到: file.cpp:21: error: no matching function for call to ‘File::read(int&, char*&, int)’ file.cpp:17: note: candidates are: char*