This repository has been archived on 2026-07-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cmc/lectures/Reverse.cpp
T
2025-04-13 21:48:15 +03:00

46 lines
456 B
C++

#include <iostream>
class C
{
unsigned long long x = 0;
bool last = false;
public:
C() {
if (std::cin >> x) {
return;
}
last = true;
}
~C() {
if (last) {
return;
}
std::cout << x << " ";
}
};
void
f() {
C c;
if (std::cin.eof()) {
return;
}
f();
return;
}
int
main() {
f();
std::cout << std::endl;
return 0;
}