16 lines
423 B
C++
16 lines
423 B
C++
#include <string.hpp>
|
|
|
|
void main( void ) {
|
|
|
|
String s1 ("Open Watcom C++ compiler");
|
|
String s2 ("Open Watcom C compiler");
|
|
char *pch = "Open Watcom C++ compaler";
|
|
|
|
cout << "\"" << s1 << "\" and \""
|
|
<< s2 << "\" differs at offset "
|
|
<< s1.match( s2 ) << endl;
|
|
cout << "\"" << s1 << "\" and \""
|
|
<< pch << "\" differs at offset "
|
|
<< s1.match( pch ) << endl;
|
|
}
|