for(i=0;i<tot.GetSize();i++)//CStringArray tot;{if(_ttoi(tot[i])<1){tot.RemoveAt(i-1);tot.RemoveAt(i);//removeat會引起tot.getsize()變化嗎?//i--能遍歷tot嗎?要加i--嗎?}}我忘記把這句 tot.RemoveAt(i-1); 去掉了大家請忽略這句
2 回答

慕娘9325324
TA貢獻1783條經驗 獲得超4個贊
//fish1
if(x1>-100)
x1=x1-7;
else
{ x1=950;
y1=rand()%500;}
//fish2
if(x2>-100)
x2=x2-6;
else
{x2=950;
y2=rand()%500;}
InvalidateRect (hwnd, NULL,true) ;
}
}
return 0;
}

富國滬深
TA貢獻1790條經驗 獲得超9個贊
{return true;}
else
{return false;}
}
void InsFirst(T record)
{Node<T>*node=new Node<T>(record);
if(IsEmpty())
{_head=node;
_rear=node;
}
else
{node->Next=_head;_head=node;}
}
void InsLast(T record)
- 2 回答
- 0 關注
- 97 瀏覽
添加回答
舉報
0/150
提交
取消