锘??xml version="1.0" encoding="utf-8" standalone="yes"?> 涓嶈繃寰堜箙娌$敤C++浜嗭紝閭e氨浠庣幇鍦ㄥ紑濮嬮噸鎷綾++鍚с傘傘?/p>
]]>
void Balloon::Loc_Reset()

{
srand(time(NULL));
M_CurLoc.x = rand()%700 + 100;
M_CurLoc.y = rand()%700 + 600;
flag = UP;
}
for(i = 0; i < n; i++)

{
tempball.Loc_Reset();
M_ActBall.push_back(tempball); 
}
void Balloon::Loc_Reset()

{
M_CurLoc.x = rand()%700 + 100;
M_CurLoc.y = rand()%700 + 600;
flag = UP;
}
void Balloon::GetSrand()

{
srand(time(NULL));
}

/**/////////////////////////////////////
tempball.GetSrand();
for(i = 0; i < n; i++)

{
tempball.Loc_Reset();
M_ActBall.push_back(tempball); 
}
]]>