AlexeyDmitriev / JHelper

GNU Lesser General Public License v3.0
119 stars 31 forks source link

Custom templates for code generation #128

Closed rishabhdeepsingh closed 4 years ago

rishabhdeepsingh commented 4 years ago

Is there a way we can add custom templates to generate the main.cpp file.

AlexeyDmitriev commented 4 years ago

What is main.cpp?

rishabhdeepsingh commented 4 years ago

The output file

AlexeyDmitriev commented 4 years ago

Yes, it's called submission.template

rishabhdeepsingh commented 4 years ago

I just want to remove the void solve(std::istream& cin, std::ostream& cout) can't we use the global IO or write a custom IO just like Egor's CPP or the simple cin or cout without passing the istream to every function we want to perform.

AlexeyDmitriev commented 4 years ago

This can't be done using templates I said you already that Egor patched Jhelper