Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

c_str() function?

4: Adsense

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   

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 felix9x   Members   

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   

8817
Like
Likes
Like

Posted 09 August 2001 - 09:02 PM

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

#4 cozman   Members   

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.