Multiple definition of main()

前端 未结 5 1693
刺人心
刺人心 2021-01-24 06:36

Hi guys trying to use two main() and getting this error multiple definition of main(). I renamed my main functions then why is this error and also first defined here for my prin

5条回答
  •  深忆病人
    2021-01-24 06:37

    You overrode the built in print, about main, try imagining a car with two steering wheels ... it wont work ...

    Your C program has two have a least one main, so the computer knows where the program starts. If you have 2 files with two main function, then you have two different programs.

提交回复
热议问题