void Ivesti(Taskas & ts, constchar CD[CMax], int & sk){
double xkoordinate, ykoordinate; // koordinates x ir y
string pavadinimas; // figuros pavadinias
int spindulys;
ifstream fd(CD);
while(!fd.eof()){
fd >> pavadinimas >> sk;
for(int i=0; i<sk/2; i++){
if(sk/2<2){
fd >> xkoordinate >> ykoordinate >> spindulys;
ts.Deti(Figura(pavadinimas, xkoordinate, ykoordinate, spindulys));
//cout << pavadinimas << " " << xkoordinate << " " << ykoordinate << " " << spindulys << endl;
}elseif(sk/2>=2){
fd >> xkoordinate >> ykoordinate;
ts.Deti(Figura(pavadinimas, xkoordinate, ykoordinate));
//cout << pavadinimas << " " << xkoordinate << " " << ykoordinate << endl;
}
}
fd.ignore();
}
fd.close();
}
void KokiuIrKiek(Taskas & ts, int sk){
}
void Spausdinti(Taskas & ts, int sk){
for(int i=0; i<ts.Imti(); i++){ // ts.Immti() is not good because i need to check if my coordinates/2<2. and ts.Imti()=8!!! I need to turn my cikle to 6 (because it is the first number on txt file andso on) So how I need to do it?
if(ts.Imti()/2<2){
cout << ts.Imti(i).SpausdintiAp() << endl;
}elseif(ts.Imti()/2>2){
cout << ts.Imti(i).Spausdinti() << endl;
}
}
}
Hello, I have really serious problem on my programm
I'm sorry, but the biggest problem is that you failed to explain what exactly problem you have and what kind of help you seek.
Also I dare to propose avoid using of identifiers in your native language since usually people from other countries will have great difficulty trying to understand what is the program about at all (so there is no great chance they will try to help).