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
2d string array
2d string array
Oct 27, 2012 at 7:16pm UTC
BandK
(54)
I have 2d string array named X[5][5].
If i put in X[2][3] text how to check that in X[2][3] is text...
example... if(in X[2][3] is text){
}
Oct 27, 2012 at 8:13pm UTC
IceThatJaw
(529)
I believe the string class has an empty method.
if ( !X[2][3].empty() )
... string has at least a space
Oct 27, 2012 at 8:15pm UTC
BandK
(54)
Thank you :)
Topic archived. No new replies allowed.