Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ Question
Re: C++ Question [message #340008 is a reply to message #339983] Wed, 09 July 2008 16:57 Go to previous messageGo to previous message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma:
Colonel
You should either use (const) char* or std::string. char* is marginally faster, but it's easier to make silly, sloppy, and sometimes exploitable errors with it. BTW, you don't need to call an extra function, as Text[1] is already an std::string and .c_str() gives you a char* from it.

HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.

[Updated on: Wed, 09 July 2008 17:00]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Steath effect skin
Next Topic: DUB Hummer
Goto Forum:
  


Current Time: Fri Dec 27 05:27:34 MST 2024

Total time taken to generate the page: 0.01092 seconds