Thread Aufgabe aus Klausur: Hilfe ! (7 answers)
Opened by Cooly at 2004-02-08 15:43

esskar
 2004-02-08 20:59
#10888 #10888
User since
2003-08-04
7321 articles
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int size = 3;
function* fkt = new function[size];
fkt[0] = f1;
fkt[1] = f2;
fkt[2] = f3;

result* calc_zeros(const function* & fkts, int size, error* & errors)
{
if(size <= 1) return NULL;

result* rs = new result[size];
errors = new error[size];

for(int i = 0; i < size; i++)
{
/* in result[i] wird die nullstelle der function fkts[i] gespeichert
in errors[i] eventuell eine Fehlermeldung */
}
return rs;
}


besser ?

View full thread Aufgabe aus Klausur: Hilfe !