bug fixes on mstring and jstring.
This commit is contained in:
1 parent
0d60cce8dc
commit
83e9b8ca99
5 files changed
+23
-13
No files matched your search
Binary file not shown.
@@ -1,5 +1,7 @@
|
||||
#include <iostream>
|
||||
#include "../JString.h"
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
@@ -45,6 +47,13 @@ int main(int argc, char **argv) {
|
||||
std::cout << test1["array[1]"] << std::endl;
|
||||
std::cout << test1["array[2]"] << std::endl;
|
||||
|
||||
std::string string1 = test1["tester"];
|
||||
std::cout << "from string: " << string1 << std::endl;
|
||||
|
||||
coreutils::MString testout;
|
||||
testout << "this is a test: " << test1["comment"];
|
||||
std::cout << testout << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user