16 lines
199 B
C++
16 lines
199 B
C++
#include <iostream>
|
|
|
|
void test(int*);
|
|
int num{ 0 };
|
|
|
|
int main()
|
|
{
|
|
test(&num);
|
|
return 0;
|
|
}
|
|
|
|
void test(int* execNum) {
|
|
std::cout << ++(*execNum) << ".";
|
|
test(execNum);
|
|
}
|