Thread: Problema c++
View Single Post
Old 01-06-2008, 02:30   #3 (permalink)
TLD
Registered User
 
TLD's Avatar
 
Join Date: Jan 2005
Location: Bucuresti
Erorile sunt

Could not find a match for 'std:: pair<long,long>:: pair()'
Cannot find default constructor to initialize array element of type 'std:: pair<long,long>:: pair()'
Could not find a match for 'std:: pair<long,long>:: pair()'

Practic eroarea pare a fi in zona asta a programului, dar nu vad ce trebuie schimbat:

TFraction sumFractions(TFraction& f1, TFraction& f2){
TFraction f;
simplifyFraction(f1); simplifyFraction(f2);
f.first=f1.first*f2.second+f1.second*f2.first;
f.second=f1.second*f2.second;
simplifyFraction(f);
return f;
}
 
TLD is offline    Reply With Quote