cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
string to char[]
string to char[]
Jul 7, 2008 at 4:12am UTC
Nandor
(83)
can someone tell how can I convert a string into a character sequence?Or can i use the getline(cin,...) function for character sequences?
Jul 7, 2008 at 11:06am UTC
bnbertha
(401)
If you are talking about
std::string
then use the c_str or data members
see the link for more details
http://www.cplusplus.com/reference/string/string/
Topic archived. No new replies allowed.