diff --git a/main.cpp b/main.cpp index 0fac5f7..36cb371 100644 --- a/main.cpp +++ b/main.cpp @@ -1,15 +1,11 @@ #include -void test(int*); -int num{ 0 }; +int test(); int main() { - test(&num); - return 0; + std::cout << test(); } -void test(int* execNum) { - std::cout << ++(*execNum) << "."; - test(execNum); +int test() { }