In article <79**************************@posting.google.com >,
Rajesh N Thipse <ra**********@yahoo.com> wrote:
Victor Bazarov <v.********@comAcast.net> wrote in message
news:<ZX******************@newsread1.dllstx09.us. to.verio.net>... Rajesh N Thipse wrote: > Files can be created using _creat.
Really? I don't know such function in the Standard library.
--------------------
In VC++, the following piece of code generates "temp" file
[...]
But that is not standard C++. It uses Windows-specific functions. Here's
what I got when I tried to compile it under Mac OS X:
[Jon-Bells-Computer:~/Documents/c++] jtbell% c++ create.cpp
create.cpp:1:16: io.h: No such file or directory
create.cpp:8: error: `main' must return `int'
create.cpp: In function `int main(...)':
create.cpp:9: error: `_S_IREAD' undeclared (first use this function)
create.cpp:9: error: (Each undeclared identifier is reported only once for
each
function it appears in.)
create.cpp:9: error: `_S_IWRITE' undeclared (first use this function)
create.cpp:9: error: `_creat' undeclared (first use this function)
create.cpp:15: error: `_close' undeclared (first use this function)
--
Jon Bell <jt*******@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA