oi_helper
is an utility application to help managing your C++ OI workspaces.
oi_helper
We all know that we often need a project manager when we're developing an application or a library. For example, I use cargo
to manage this project. But, there is a special kind of programming, which is for algorithm competitions. This kind of programming is often called OI by people, or at least in China. OI is very special because an OI project often has a lot of source files and each source file can be compiled in to an complete binary executable file alone. It's quite different to those ordinary developings. But who said that OIers (people who do OIs) are not able to have a project manager? Usually they may need to compile everything by themselves. In the past, they should write everything by themselves, includeing #include
s and using
s. But with the codegen ability of oi_helper
, they are no longer need to do this because oi_helper
will help them generate what they want, for example, the default template is:
```C++
//
using namespace std;
static const int MAXN = 1e5+114514;
int main() {
return 0;
}
``
You can see that
oi_helperincluded some header files that OIers may want to use, and also generates the
MAXN` constant, which is very useful when doing DP or other algorithms that needs arrays.
If you want to install it easily, just type:
cargo install oi_helper
If you are interested in building it by yourself, then type:
cargo build
Before doing this you should install rust from here.