Commit d6edf05a authored by Nina Džugasová's avatar Nina Džugasová Committed by Tomáš Oberhuber
Browse files

Added String examples.

parent f7e026d8
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
#include <iostream>

using namespace TNL
       
int main()
{
    String str("my world")
    int alloc_size = str.getAllocatedSize();
    cout << "alloc_size:" << alloc_size << endl;
}
 No newline at end of file
+11 −0
Original line number Diff line number Diff line
#include <iostream>

using namespace TNL
       
int main()
{
    String str("my world")
    int size = str.getSize();
    cout << "size of string:" << size << "bytes" << endl;
}
+10 −0
Original line number Diff line number Diff line
#include <iostream>

using namespace TNL
       
int main()
{
    int memory 
    memory.setSize( 256 );
    cout << "memory:" << memory << endl;
}