don't you mean char*?
at the moment, for pure operations on char arrays, then string.h has some useful things, all beginning with str.
If you want ease of use, try the STL string class:
there's lots of member functions to do what you need - the documentation's pretty good.Code:#include <iostream> #include <string> using namespace std; void main() { string sMyStr = "A string"; cout << sMyStr << endl; }




Reply With Quote