Merge C++ files into a single source file

后端 未结 7 1620
慢半拍i
慢半拍i 2020-12-10 01:27

I have a c++ project with multiple source files and multiple header files. I want to submit my project for a programming contest which requires a single source file. Is the

7条回答
  •  春和景丽
    2020-12-10 02:08

    I also needed this for a coding contest. Codingame to be precise. So I wrote a quick JavaScript script to do the trick. You can find it here: https://www.npmjs.com/package/codingame-cpp-merge

    I used it in 1 live contest and one offline game and it never produced bad results. Feel free to suggest changes or make pull requests for it on github!

提交回复
热议问题