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

求阙者

关注

阅读 91

2023-06-17


// 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)

0 0 举报