新的一年开始了,大家新年快乐啊:)来做做程序填空吧:)
// 好小爱新 2012.01.02
int main()
{
Application->Initialize();
// 加载地球数据:)
auto_ptr<TSphere>Earth(new TSphere);
Earth->LoadInfoByYear(2012);
// 跑得过地裂
auto_ptr<TPeople>you(new TPeople);
for(;;)
{
you->Running.Speed.Add();
if (you->Running.Speed.Value > Earth->Break.Speed.Value) break;
}
// 跳得过高墙
for(;;)
{
you->Jumping.Height.Add();
double dblHighestWall=0;
for (int i = 0; i < Earth->Wall->Count; ++i)
if (Earth->Wall->Item[i].Height > dblHighestWall) dblHighestWall = Earth->Wall->Item[i].Height;
if (you->Jumping.Height.Value > dblHighestWall) break;
}
// 能无性生育
// 填空1
// 活得过小强
// 填空2
// 能自已发电
// 填空3
// 能徒手盖房
// 填空4
// 填空5——任君想象:)
}