Posted By

somada141 on 03/12/10


Tagged

String char conversion


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

oakdragon
khouser


Convert C-String (char) to String


 / Published in: C++
 

  1. string str = "blabla";
  2. char cstr=str.c_str();

Report this snippet  

You need to login to post a comment.