0
点赞
收藏
分享

微信扫一扫

(new A())->sayhi();

求阙者 2023-06-17 阅读 89


// newRun.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

class A
{
public:
	void sayhi()
	{
		printf("Hello World!\n");
	}
};

int main(int argc, char* argv[])
{
	(new A())->sayhi();
	return 0;
}
/*
Hello World!
Press any key to continue
*/



举报

相关推荐

0 条评论