
Newbie problem with arrays
Hi there,
We'd like to declare a function that returns an array.
Face rekursion(Face flaeche, int rek){
...do something in here....
return flaeche;
/*4 Points that declare a Face should be returned here */
Quote:
}
Face is declared like that:
typedef Point Face[ 4];
Point is declared like that:
typedef float Point[3];
The problem is that we get the following error message:
'rekursion' declared as function returning an array
and a warning: return makes integer from pointer without a cast
Petra & Laura