Exemplo n.º 1
0
int FillDownloadsItem(const CSimpleArray<T> &arr, const IntArray&arrayId, CSimpleArray<T_RepairItem>&arrDownloadItem)
{
	int count = 0;
	for(int i=0; i<arrayId.GetSize(); ++i)
	{
		int nID = arrayId[i];
		T pItem = FindArrayItem(arr, nID);
		if(pItem)
		{
			arrDownloadItem.Add( T_RepairItem(pItem) );
			++ count;
		}
	}
	return count;
}