.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   Any of you string/pointer/memory guru's out there who can help me? (http://forums.bots-united.com/showthread.php?t=1315)

botmeister 09-04-2004 22:55

Re: Any of you string/pointer/memory guru's out there who can help me?
 
Are all you guys masochists or something? Why subject yourself to the horrible pain of zero based character array manipulation when you could be using the standard C++ string class?

Rick 09-04-2004 23:30

Re: Any of you string/pointer/memory guru's out there who can help me?
 
I dunno later on I want to but I think I'm to lazy to learn to use them and since I already use C strings... But I read some stuff about it and indeed its way simpeler. Especially I like the way you can use operators like == and += normaly. O well some day....

botmeister 10-04-2004 08:03

Re: Any of you string/pointer/memory guru's out there who can help me?
 
Rick, there's not much to learn about the string class really. The on going productivity loss futzing around with c strings will never end, so investing a couple hours into learning how to use the string class is well worth it.

http://www.msoe.edu/eecs/ce/courseinfo/stl/string.htm

Pierre-Marie Baty 10-04-2004 15:07

Re: Any of you string/pointer/memory guru's out there who can help me?
 
I'm still gonna stick to the character arrays, in spite of all this... yes.

I like to know where every single byte of memory goes to :)

That's not a drawback for me because my code is usually rather ANSI C than C++.

botmeister 11-04-2004 23:33

Re: Any of you string/pointer/memory guru's out there who can help me?
 
Quote:

Originally Posted by Pierre-Marie Baty
I'm still gonna stick to the character arrays, in spite of all this... yes.

I like to know where every single byte of memory goes to :)

That's not a drawback for me because my code is usually rather ANSI C than C++.

You could always write your own string class, there's not that much too it, esp if you just wrap the old C routines into it. But I hear you're not yet into C++?

Magnus 01-06-2004 16:06

Re: Any of you string/pointer/memory guru's out there who can help me?
 
"You could always write your own string class"

:D Exactly :D

@$3.1415rin 01-06-2004 19:41

Re: Any of you string/pointer/memory guru's out there who can help me?
 
Quote:

Originally Posted by Magnus
"You could always write your own string class"

:D Exactly :D

if you got nothing better to do ... but let's keep this discussion where it started !

Killaruna 02-06-2004 19:44

Re: Any of you string/pointer/memory guru's out there who can help me?
 
Quote:

Originally Posted by Pierre-Marie Baty
omfg, if the hwole RealBot is written this way, then it's driven by MAGIC !

ROFL! Couldn't resist to quote that, too funny...

Pierre-Marie Baty 02-06-2004 23:33

Re: Any of you string/pointer/memory guru's out there who can help me?
 
beware dude, just publish the Parabot sources and Stefan will hunt down every single bug to nag you with it! ;)


All times are GMT +2. The time now is 15:16.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.