Two 'main' functions in C/C++

后端 未结 16 1458
一整个雨季
一整个雨季 2020-12-01 16:08

Can I write a program in C or in C++ with two main functions?

16条回答
  •  臣服心动
    2020-12-01 16:35

    Not in C, C++

    but now C#.net introduce trick you can use 2 mains in one application. i implemented in my application too. I have scenario and requirement and implemented it successfully.

    reference and proof is here https://www.youtube.com/watch?v=KJcBj3hLIpM

提交回复
热议问题