Code (Text):
Vec2D.java:28: error: bad operand types for binary operator '*'
double[] arr={((x*v1)*(x*v2))+((y*v1)*(y*v2))};
^
first type: double[]
second type: double[]
double[] arr={((x*v1)*(x*v2))+((y*v1)*(y*v2))};
^
first type: double[]
second type: double[]
und v1 und v2 müssen double [] sein.-. wenn es daran liegt + und / funktionieren ohne...
double*double error
double*double error
0 commentaires:
Enregistrer un commentaire