Eclipse creating projects every time to run a single file?

前端 未结 7 1753
走了就别回头了
走了就别回头了 2021-02-13 21:03

i am a beginner using eclipse CDT. usually in DEVc++ or other lightweight IDE\'s we can directly open and edit a single .cpp file from desktop and run it.

on the other h

7条回答
  •  深忆病人
    2021-02-13 21:46

    Eclipse is great. I love it, but you are right, there is too much burden with one-file projects. So maybe approach problem in different way:

    1. Write code in Eclipse enjoying all IDE features.

      Put all your one-file programs to single project. No, Eclipse won't compile them because of multiple main functions but...

    2. Compile file from command line.

      You can copy proper command line from Eclipse console when building project. You must be smart because you are playing topcoder so you figure out how to alter command line for your need. ;)

提交回复
热议问题