更新时间:2021-10-28 04:37:05
您的 _tWinMain
功能是空的并立即返回。您必须向函数体添加一些代码。
Your _tWinMain
function is empty and returns immediately. You must add some code to the function body.
添加到Jochen Arndt所说的内容:当您获得应用程序返回代码为零(如您所做)时,表示程序已成功完成 - 任何非零值都是错误代码。
您的应用程序入口点_tWinMain
什么都不做,所以它成功完成,您将获得零返回代码。定义一个类不会创建它的实例,也不会执行该类中的任何代码,除非你的代码明确指示它应该执行。
To add to what Jochen Arndt says: when you get an app return code of zero (as you do) that means "Program completed successfully" - any non-zero value is an error code.
Your application entry point_tWinMain
does nothing, so it completes successfully and you get a zero return code. Defining a class does not create an instance of it, nor does any of the code in that class get executed unless your code specifically instructs that it should.
你好每一个我都是新手c ++中的编程语言请告诉我如何设置实例
Hello every one i am very new to programming language in c++ please do let me know how can i cerate an instance