add function for declaring an interactive tasks
This commit is contained in:
parent
c0d288e9e8
commit
b3250096e1
|
@ -74,11 +74,17 @@ soi_initializer soi_initializer_{true};
|
||||||
soi_initializer soi_initializer_{false};
|
soi_initializer soi_initializer_{false};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void interactive_task() {
|
||||||
|
std::cin.tie(&std::cout);
|
||||||
|
}
|
||||||
|
|
||||||
} // end namespace soi
|
} // end namespace soi
|
||||||
|
|
||||||
#include "bits/soi-io.hpp"
|
#include "bits/soi-io.hpp"
|
||||||
#include "bits/soi-redirect.hpp"
|
#include "bits/soi-redirect.hpp"
|
||||||
#include "bits/soi-deprecate.hpp"
|
#include "bits/soi-deprecate.hpp"
|
||||||
|
|
||||||
|
using soi::interactive_task;
|
||||||
|
|
||||||
#define int int64_t
|
#define int int64_t
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
Loading…
Reference in New Issue