- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
#include <iostream>
#include <cstdio>
namespace std {
namespace ios_base2 {
extern struct sync_with_stdio_t {
void h(bool sync = true) {
ios_base::sync_with_stdio(sync);
}
} sync_with_stdio;
}
}
int main() {
std::ios_base2::sync_with_stdio.h(false);
std::cout << "1";
printf("2");
std::cout << "3";
puts("");
return 0;
}
3_dar # 0
guest # 0 ⇈
Steve_Brown # 0 ⇈
Что-то в таком духе?
guest # 0 ⇈
bormand # 0 ⇈
bormand # 0
(my::std::ios_base будет потомком настоящего std::ios_base).