Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
double sum = cos((int) (alpha * (M_PI / 180.0)));
double sum = cos((double) (alpha * (M_PI / 180.0)));
Das ist nicht korrekt. 180.0 ist ein double-Literal. Der int wird zu double befördert, das Ergebnis des Ausdrucks innerhalb von cos(...) ist double.Hi,
du deklarierst "alpha" als int. Somit wird in Zeile 25 folgendes interpetiert:
C:double sum = cos((int) (alpha * (M_PI / 180.0)));