标签:
FILE * out_fp; const char * out_file = "output.bin"; out_fp = fopen(out_file, "wb" ); if( out_fp == NULL ){ printf(" file open failed\n"); exit(1); }
size_t read_size;
size_t reality_size;
if(reality_size!= (read_size = fwrite(model, sizeof(T), read_size, out_fp))){ }
标签:
原文地址:http://www.cnblogs.com/hansjorn/p/5108715.html