Merge C++ files into a single source file

后端 未结 7 1625
慢半拍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:17

    I think the project with headers, sources files must be must nicer than the one with only one main file. Not only easier to work and read with but also they know you do good job at separating program's modules.

    Due to your solution, I provide this format and I think you have to do hand-work:

    // STL headers
    
    
    // --- prototype
    // monster.h
    
    // prince.h
    
    // --- implementation
    
    int main() { 
    // your main function
    return 0;
    }
    

提交回复
热议问题