C++字符串转换

  string mystr="100";
  float price=200;
  stringstream(mystr) >> price;
posted @ 2009-10-23 15:18  Fan Zhang  阅读(166)  评论(0编辑  收藏  举报