如题
解决方案 »
- 有没有人做过对话框程序与进度条同步运行
- 什么问题 生成无法解析外部符号
- 关于skin++等皮肤界面问题
- 如何初始化窗口及获取数据?
- LINK : warning LNK4089: all references to "MSVCIRT.dll" discarded by /OPT:REF
- 我想根据系统输出的音频大小和用户通过mic输入的音频大小分别作一个波形图,请问如何获得声音大小的数值呢??
- CStdioFile类对文件的操作
- VC中若要做一个全局变量式的数据链接,如何写代码
- 一个VC--SQL数据库编程问题
- 学习MFC中的思考~
- VC6.0使用GDI+: AddString 与 DrawString 输出文字长度不同的问题 - -!
- 各位指点指点迷津
// compile with: /c
// This program demonstrates the use of
// the abort function by attempting to open a file
// and aborts if the attempt fails.#include <stdio.h>
#include <stdlib.h>int main( void )
{
FILE *stream = NULL;
errno_t err = 0; err = fopen_s(&stream, "NOSUCHF.ILE", "r" );
if ((err != 0) || (stream == NULL))
{
perror( "File could not be opened" );
abort();
}
else
{
fclose( stream );
}
}
Required header:<process.h> or <stdlib.h>