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.

Werte ausschliessen

Empfohlene Antworten

Hi,

ich denke die Frage werden mir einige von Euch beantworten können.

Es ist ein kleines Programm das im Konsolenmodus abläuft, also keinerlei grafischen Schnickschnack beinhaltet.

Ich möchte jede Eingabe die nicht zwischen 1 und 30 liegt mit einer Fehlermeldung abfangen. Danach soll man die Eingabe wiederholen dürfen.

Wie bewerkstellige ich das am besten.

Mit einem Switch/Case müßte ich ja alle 30 Werte abfragen, so das quasi der Rest default ist.

Thx für Eure Hilfe.

P.S. Bin ein C++-Newbie :)

versuchs doch einfach mit ner if abfrage

wenn VARIABLE grösser und kleiner = 0 ist

dann

im code

if (Bedingung)

{

Verarbeitung;

}

else

Ich Elch.

ich hätte einfach mal die IF-Schleife umd die gesamte Verarbeitung legen sollen :)

Wie dem auch sei, jetzt klappt es :)

Thx

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.