diff --git a/src/Examples/CMakeLists.txt b/src/Examples/CMakeLists.txt index 2375c669318e56ca03f9f7670a6be59d5688842c..25fad5b456ebcda190ff563e403d0d1f4c91cb0e 100644 --- a/src/Examples/CMakeLists.txt +++ b/src/Examples/CMakeLists.txt @@ -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 ) diff --git a/src/Examples/ConfigDescriptionExample.cpp b/src/Examples/ConfigDescriptionExample.cpp index a6e0bded8a0cb1ebae8740c6d0d467362b253fae..6d7d48d900226eacccf4851e43a35fa3cff7aa6d 100644 --- a/src/Examples/ConfigDescriptionExample.cpp +++ b/src/Examples/ConfigDescriptionExample.cpp @@ -1,5 +1,5 @@ #include <iostream> -#include <TNL/ConfigDescription.h> +#include <ConfigDescription.h> using namespace TNL; using namespace std; diff --git a/src/Examples/ListExample.cpp b/src/Examples/ListExample.cpp index 4582436a4431062f47031b94d920dbab4b62e3eb..8737060d2154846e0a6e3e58d5e7ea38865a6109 100644 --- a/src/Examples/ListExample.cpp +++ b/src/Examples/ListExample.cpp @@ -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