Skip to content
Snippets Groups Projects
Commit 2ef34bca authored by Nina Džugasová's avatar Nina Džugasová
Browse files

Added ListExample.

parent 0bafd8d9
No related branches found
No related tags found
1 merge request!15Nina
......@@ -30,6 +30,10 @@ target_link_libraries( ListExample tnl )
ADD_EXECUTABLE( LoggerExample LoggerExample.cpp )
target_link_libraries( LoggerExample tnl )
ADD_EXECUTABLE( MathExample MathExample.cpp )
target_link_libraries( MathExample tnl )
ADD_EXECUTABLE( StringExample StringExample.cpp )
target_link_libraries( StringExample tnl )
......
#include <iostream>
#include <TNL/ConfigDescription.h>
#include <ConfigDescription.h>
using namespace TNL;
using namespace std;
......
......@@ -6,6 +6,18 @@ using namespace std;
int main()
{
template List< int > lst;
List lst;
lst.Append(data);
lst.isEmpty();
lst.Append(1);
lst.Append(3);
lst.isEmpty();
lst.getSize();
lst.Insert(2,1);
Array array;
lst.template toArray< int >(array);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment