Loading
字符串快速排序 按字典序進行排序

今天突发奇想,写了个很扯的A+B问题的程序~

Freddy posted @ 2011年10月08日 02:18 in C++ , 1236 阅读

看这个程序,main函数里面是空的~

#include <fstream>
using namespace std;
ifstream fin("aplusb.in");
ofstream fout("aplusb.out");
class QQ
{
public:
	double a;
	double b;
	QQ()
	{
		fin>>a>>b;
		fout<<a+b<<endl;
	}	
}A;

int main()
{
	return 0;
}
Avatar_small
Plux 说:
2011年10月08日 03:41

用一些#define还可以隐藏main()函数。。


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter