🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Strings & Commands

Started by
3 comments, last by JonathanATX 22 years, 7 months ago
I know how to use apstring, but I''d rather not unless it''s for school. Could someone tell me how to create regular strings? Also, I would like to know how to use commands in Text-Based programs I write...>kill zombie...and such, could someone tell me how, or give me a link? -Jonathan
-Jonathan
Advertisement
Look up language parsing or tokenising.
I know what parsing is with java-script, I assum that will fix my command problem.

But with the strings, should I try to write my own class? I would rather not use char arrays all the time. Unless there is a short cut to creating them?

-Jonathan
-Jonathan
Char arrays is how C and C++ handle strings. Sorry, that''s what you''ll have to use.

Unless you feel like using STL or MFC strings, but these are still char arrays at heart.
I was afraid of that...oh well, I guess it''s not so bad.

-Jonathan
-Jonathan

This topic is closed to new replies.

Advertisement