Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Ahhh. Sorry jungs. ich habe den Falschen Syntax gepostet. Mein Fehler. Der Richtige sollte so sein

#define sin_start 10

#define sin_end 360

#define schrittweite 45

#define amplitute 10

#define m_pi 3.14159265358979323

#define rad2dag® R*(m_pi*180.00)

#define rad® R*(3.14159265358979323/180.00)

#define grad® R*(180.00/3.14159265358979323)

#define m_rad 3.14159265358979323/180.00

#define m_grad 180.00/3.14159265358979323

char abbruch;

float ausgabe;

int main ()

{

outport (0x300,0);

inportb (0x300);

clrscr ();

double sin_val;

do

{

if ( kbhit() )

{

abbruch=getch();

if (abbruch==27)

goto beenden;

}

for ( sin_val=sin_start; sin_val<=sin_end; sin_val+=(sin_end-sin_start)/schrittweite)

{

gotoxy (7,15);

printf ("Wert %5.6f bei %2.1f Grad \n", amplitute/2+(amplitute/2*sin(rad(sin_val))),sin_val);

ausgabe=(sin(rad(sin_val))*4095)/10;

outport (0x300,(int)ausgabe+2048);

inport (0x300);

}

}

while (!kbhit());

beenden:

return 0;

}

Sorry. Aber der funzt. Hundertpro.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.