Posted By

oppey on 03/23/11


Tagged

c


Versions (?)

string to char


 / Published in: Other
 

  1. char* s = new char[ _srcFileName.length() + 1 ];
  2. strcpy( s, _srcFileName.c_str() );
  3. cout << s <<"n";
  4.  
  5. // 処理
  6. delete [] s;

Report this snippet  

You need to login to post a comment.