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.

Verzweigungen

Empfohlene Antworten

Veröffentlicht

hi,

der Compiler meldet mit, dass die Syntax bei && nicht stimmt!!

Text:

//

//

//

#include <iostream.h>

#include <conio.h>

int main(int argc, char* argv[])

{

//Variablendefinition

int a = 0;

int b = 0;

int c = 0;

//temp. Variablen

//Eingabe der Werte/ Daten

cout << "Bitte geben sie Zahl a ein: " << endl;

cin >> a;

cout << endl << endl;

cout << "Bitte geben sie Zahl b ein: " << endl;

cin >> b;

cout << endl << endl;

cout << "Bitte geben sie Zahl c ein: " << endl;

cin >> c;

cout << endl << endl;

if (a < B)&& (a < c)

{

cout << "a ist die gesuchte Zahl.";

cout << endl << endl;

}

else

{

cout << "Die Werte werden getestet.";

cout << endl << endl;

}

if (b < c) && (b < a)

{

cout << "b ist die gesuchte Zahl.";

cout << endl << endl;

}

else

{

cout <<"Es werden weitere Tests durchgeführt.";

cout << endl << endl;

}

if (c < a) && (c < B)

{

cout << "c ist die gesuchte Zahl."

cout << endl;

}

getch();

return 0;

}

THX,

Hardware- Georg :eek:

Du musst das jeweils noch in () setzten, also z.B. so:

if ((a < B)&& (a < c))

Außerdem fehl in der 6. letzten Zeile am Ende das ;

Bine

@bine

THX a lot,

Hardware- Georg :D

Ist ok, ich freue mich wenn ich auch mal jemandem helfen kann, denn meistens muss man eher mir helfen.

Bine

bei Hardware- Fragen kannst du gerne bei mir Antworten suchen :D

CU,

Georg

Nun, da ich im Moment ur dabei bin ein Programm zu schreiben werde ich das im Moment nicht brauchen, danke aber trotzdem.

Bine

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.