cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
string question
string question
Oct 6, 2009 at 3:26pm UTC
blucrosoft
(16)
It's possible ?(str[1], str[2] are strings)
1
2
// string str;
cout << str[1] << str[2];
Last edited on
Oct 6, 2009 at 3:27pm UTC
Oct 6, 2009 at 3:43pm UTC
Bazzy
(6281)
yes
Oct 6, 2009 at 3:45pm UTC
blucrosoft
(16)
i mean a string matrix, so str[1] is a string and str[2] another one.
Last edited on
Oct 6, 2009 at 3:46pm UTC
Oct 6, 2009 at 3:49pm UTC
Bazzy
(6281)
Classes -as std::string- can be used as any other type
1
2
string str[3]; cout << str[1] << str[2];
Oct 6, 2009 at 3:51pm UTC
blucrosoft
(16)
thanks!
Topic archived. No new replies allowed.