The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Very Stupid C++ Question by greyhat2003-02-09 14:52:50
  Umm....What exactly are you trying. by Avium2003-02-09 15:05:58
    Heres what I basically figured out: by greyhat2003-02-09 16:18:32
      I'm not immolating...yet. ;-) by Avium 2003-02-09 16:50:00
I don't use the string class myself because it's not very widely supported. Most (if not all) API calls expect and return character arrays so you can't mix things written using the string class with anyone else's API's. Which makes reading a database using strings damn near useless. ;-)

Another thing is the fact that all system calls in *NIX are C based. You wind up having to write translation functions to call before making the system call. That means there's an extra step involved before the work gets done.

Another problem is the implimentations. Code written to use the C++ string class can sometimes be difficult to port. Different *NIX systems (and libs) seem to have implemented it slightly differently, if they supported it at all.

Of course, since I do this for a living, I might be taking it a little more seriously than I need too. :-P

BTW, you should probably add a << endl before the ; on your couts to get the linefeed.
cout << "Hello world!" << endl;
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)