这个程序要怎样才可以运行
查看原帖
这个程序要怎样才可以运行
141342
心妍扎辫很美楼主2021/11/18 13:35
#include<iostream>
using namespace std;
class T
{
	public:
		int a;
		int p();
};
int T::p()
{
	if(a>=100000)
		return this->a;
	this->a+=2;
	return this->p();
}
int main()
{
	T t;
	t.a=2;
	cout<<t.p();
	return 0;
}
2021/11/18 13:35
加载中...