MString now string builds with << operator.
This commit is contained in:
1 parent
d2f13c192c
commit
db801727c6
4 files changed
+45
-6
No files matched your search
@@ -20,11 +20,15 @@ int main(int argc, char **argv) {
|
||||
coreutils::MString test4;
|
||||
test4 << "this is a test.";
|
||||
std::cout << "char* operator<<: [" << test4 << "]." << std::endl;
|
||||
test4 << "another test " << 75;
|
||||
std::cout << "char* operator<<: [" << test4 << "]." << std::endl;
|
||||
|
||||
// coreutils::ZString temp("this is literal zstring data.");
|
||||
// coreutils::MString test = temp;
|
||||
// std::cout << "operator=: [" << test << "]." << std::endl;
|
||||
|
||||
// Stream assignment capabilities.
|
||||
coreutils::MString test6;
|
||||
int number = 75;
|
||||
test6 << "Will this work? " << number << test4 << " See how this works.";
|
||||
std::cout << "streaming: [" << test6 << "]." << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user