.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Command 3.0- Save $12.00
War Plan Pacific- Save $7.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old April 5th, 2004, 10:17 PM
Will's Avatar

Will Will is offline
Lieutenant Colonel
 
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
Will is on a distinguished road
Default Re: Coding Inquiry

IIRC, chop() is a perl function.

The confusion arises in C/C++ with strings because the name "string" is often used interchangably for the C++ class string, and the "C-style" pointer to an array of characters. And there is quite a bit of difference between an object and a char*

AFAIK, internally, the C++ class string really is just a sort of character array, only with seperate classes for characters to deal with unicode and all that. I remember the first time I saw what "string" actually represents in the debugger, something like three nested templated classes... I was confused for about 10 minutes as to why the function it said was behaving badly was taking that monster as an argument instead of the innocent "string" type I had it taking. But, for most people, as long as you know those functions, you can leave all the nasty bits (such as converting the object to an array of dynamically allocated characters) to the class, and go on your merry way
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.