![]() |
![]() |
|
|
|||||||
| Programmierung Rat & Tat für Programmierer |
![]() |
|
|
Themen-Optionen | Ansicht |
|
|
|
|
#1 |
|
Elite
![]() |
@xsandl33:
stimmt, allerdings ist es *= und nicht =* (gleiches mit +) @beide bitte code tags benutzen, macht den code leserlicher Code:
public class Complex {
double r, phi;
public Complex (double r, double phi) {
this.r=r; this.phi=phi;
}
public void mult(Complex c) {
r *= c.r;
phi += c.phi;
}
}
____________________________________
Whoever built humanity left in a major design flaw: it was the tendency to bend at the knees. |
|
|
|
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|