Jump to content

  • Log In with Google      Sign In   
  • Create Account

c_str() function?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1   Members   -  Reputation: 583

Like
Likes
Like

Posted 09 August 2001 - 05:55 PM

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.

#2   Members   -  Reputation: 122

Like
Likes
Like

Posted 09 August 2001 - 06:09 PM

  <string>  


Edited by - felix9x on August 10, 2001 1:11:08 AM

#3   Moderators   -  Reputation: 5206

Like
Likes
Like

Posted 09 August 2001 - 09:02 PM

it''s not
c_str(string);
it''s
string.c_str();

#4   Members   -  Reputation: 583

Like
Likes
Like

Posted 10 August 2001 - 09:18 AM

quote:
Original post by Kylotan
it''s not
c_str(string);
it''s
string.c_str();



yeah that was the problem, thanks






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS