• Advertisement

Archived

This topic is now archived and is closed to further replies.

c_str() function?

This topic is 6005 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Kylotan
it''s not
c_str(string);
it''s
string.c_str();



yeah that was the problem, thanks

Share this post


Link to post
Share on other sites

  • Advertisement