10 lines
184 B
C++
10 lines
184 B
C++
|
#include <string.hpp>
|
||
|
|
||
|
void main( void ) {
|
||
|
|
||
|
String s ("Open Watcom C++");
|
||
|
|
||
|
cout << "String \"" << s << "\" is "
|
||
|
<< ( s.valid() ? "valid." : "invalid!" ) << endl;
|
||
|
}
|