ostringstream 用法

来源:互联网 发布:手机移动网络共享 编辑:程序博客网 时间:2024/04/30 05:03
  ofstream fp("test_with_prop_node.bvh");  ostringstream out_stream_buffer;  // 分配空间  int len = 204800;  char* tmp1 = new char[len];  tmp1[0] = 0;  CCommonFunction::ExportBVHHeaderText(index, -1, 0, tmp1);  out_stream_buffer << tmp1 << "MOTION\n\nFrames: 0\n" << "Frame Time: 0.010\n";  fp << out_stream_buffer.str();  fp.close();  delete[] tmp1;
原创粉丝点击