From 239f4895fdc4f35a375b3cc8bb4e144637476d3b Mon Sep 17 00:00:00 2001 From: s-martin Date: Thu, 17 Oct 2024 22:59:40 +0200 Subject: [PATCH] Remove main method and move its content to `example1` function in `ex1.hpp` * Include `ex1.hpp` header file * Replace call to `ex1()` with `example1(argc, argv)` --- examples/ex1.C | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/ex1.C b/examples/ex1.C index ae1b832e..372d40c0 100644 --- a/examples/ex1.C +++ b/examples/ex1.C @@ -18,7 +18,6 @@ #include - int main(int argc, char **argv) { std::cout << "Example 1\n\n"; @@ -37,7 +36,7 @@ int main(int argc, char **argv) } } - ex1(); + example1(argc, argv); return 0; }