-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc11_fstream.cpp
More file actions
37 lines (31 loc) · 709 Bytes
/
c11_fstream.cpp
File metadata and controls
37 lines (31 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* =====================================================================================
*
* Filename: fstream.cpp
*
* Description:
*
* Version: 1.0
* Created: 2015年09月16日 10时13分53秒
* Last Modified: 2019-09-03 00:04:35
* Revision: none
* Compiler: gcc
*
* Author: zt (),
* Organization:
*
* =====================================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
int main ( int argc, char* argv[] )
{
( void ) argc;
( void ) argv;
std::ofstream ofs ( "a.bin", std::ios::binary );
if ( !ofs )
return -1;
ofs.close();
return 0;
}