
#include "stdafx.h"
#include<iostream>
class A
{
friend int main(int argc,char **argv)
{
A a;a.Out();
return 0;
}
public : void Out()
{
std::cout<<"Hello ,boy "<<std::endl;std::cout<<"现在你相信在类里面也可以执行main函数了吗?呵呵!"<<std::endl;
}
};



中级程序员
by: 子清 发表于:2020-03-08 16:40:14 顶(0) | 踩(0) 回复
回复评论