Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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 cozman   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.

Sponsor:

#2 felix9x   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 Kylotan   Moderators   -  Reputation: 3338

Like
Likes
Like

Posted 09 August 2001 - 09:02 PM

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

#4 cozman   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