ファイルをオープンする際にdefineでファイル名を置き換えようと思ったのですがうまく置き換えられません。
何が原因でしょうか?
#include <stdio.h> #include <fcntl.h> #include <memory.h> #include <string.h> #include <io.h> #include <errno.h> #include <math.h> #include <stdlib.h> #include <sys\types.h> #include <sys\stat.h> #define DATA syain.dat int Fd; initial_syori() { Fd = open(DATA,O_RDWR|O_CREAT, S_IREAD | S_IWRITE); } main() { } コード
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/23 07:26
2019/04/23 07:40
2019/04/23 07:48
2019/04/23 07:50