Search:
Forum
Beginners
When to use std::string in the place of
When to use std::string in the place of a cstring
Jul 6, 2012 at 7:12am UTC
Need4Sleep
(570)
the c++ string is extremely user friendly and has a ton of helpful functions, but for the most part my book elaborates on the cstring. When will using a cstring be a better option than the c++ string?
Jul 6, 2012 at 7:26am UTC
naraku9333
(2163)
When will using a cstring be a better option than the c++ string?
When you have to code in C. I honestly can't think of a situation I would prefer a cstring.
Jul 6, 2012 at 7:29am UTC
lwtan90
(46)
Just use
#include<string>
No point using
cstring
It is as good as asking is NOKIA 3310 better than NOKIA LUMIA.
LOL.
Jul 6, 2012 at 8:05am UTC
ToniAz
(351)
Use them together. You can convert one to another easily.
Jul 6, 2012 at 12:03pm UTC
strongdrink
(468)
http://www.cplusplus.com/forum/beginner/20856/
^ Would cstring only be on MS in that case?
http://forums.codeguru.com/showthread.php?319932-CString-vs-std-string
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs