#include <stdio.h> void perror(const char *string) string : 出力されるメッセージ
#include <stdio.h>
int main()
{
FILE *stream;
if ((stream = fopen("data", "r")) == NULL)
perror("***error file does not exist\n");
return 0;
}
(出力)
***error file does not exist
: No such file or directory
| ホームページ | 目次 | 演習解答例目次 | 付録目次 | 索引 |