is there any way to return arrays from functions? (Like this, not with any
star operators)
class Temp{
public:
static float getNewArray[5](){
return float[5];
}
};
int main(){
float arr[] = Temp::getNewArray();
}
SORRY!!!
Last edited on
I said I DID NOT need the star operator, how ever that is still awesome, any idea without star operator?
When you say "star operator", I'm assuming you mean "pointer"?
Why don't you want to use a pointer? That's exactly what you should use in this situation.