Skip to content
Snippets Groups Projects
Commit d6edf05a authored by Nina Džugasová's avatar Nina Džugasová Committed by Tomáš Oberhuber
Browse files

Added String examples.

parent f7e026d8
No related branches found
No related tags found
1 merge request!15Nina
#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
#include <iostream>
using namespace TNL
int main()
{
String str("my world")
int size = str.getSize();
cout << "size of string:" << size << "bytes" << endl;
}
#include <iostream>
using namespace TNL
int main()
{
int memory
memory.setSize( 256 );
cout << "memory:" << memory << endl;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment