c_str() function?

Started by
2 comments, last by cozman 22 years, 8 months ago
In the book I''m using on the STL it says that when you are opening a file (so you need a char array[]) style string. (aka NULL terminated) It says to use c_str(string). What header is this function in? I''m using bcc55 (the free one). Thanks.
Advertisement
  <string>  


Edited by - felix9x on August 10, 2001 1:11:08 AM
it''s not
c_str(string);
it''s
string.c_str();
quote:Original post by Kylotan
it''s not
c_str(string);
it''s
string.c_str();



yeah that was the problem, thanks

This topic is closed to new replies.

Advertisement