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

Veröffentlicht

Hallo und zwar mach ich seit 4 Tagen ausbildung , und wollte mal hier nachfragen ob ihr mir vll helfen könnt ?

Hab folgende aufgabe;

" Der Benutzer gibt ein Buchstaben ein a,b,c oder d "

a = Multi

b= Addition

c= Subtraktion

d= Division

Benutzer soll 2 Zahlen eingeben

= Ergebniss
Bitte, sehr sehr wichtig Hab schon bisschen Probiert, hucke seit 2 H dran :-/
// egal.cpp : Definiert den Einsprungpunkt für die Konsolenanwendung.

//


#include "stdafx.h"

#include <iostream.h>

#include <iomanip.h>

#include <conio.h>

#include <stdio.h>

#include <stdlib.h>

#include <iostream.h>

#include <conio.h>





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

{

		// Deklaration i,b vom Datentyp int. Initialisierung mit dem wert 0.


	char a = 'a' , b = 'b', c = 'c', d = 'd';


	cout << "Hallo bitte geben Sie Buchstaben von A bis D ein:\n";


	cin >> a;



	if (a==a)		

	{

		cout << "Sie haben die Buchstabe a eingegeben.";

	}


	if (a==

	{

		cout << "Sie haben die Buchstabe b eingegeben.";

	}


	if (a==c)		

	{

		cout << "Sie haben die Buchstabe c eingegeben.";

	}


	if (a==d)	

	{

		cout << "Sie haben die Buchstabe d eingegeben";

	}




	int zahl;


	cout << "Bitte geben sie 2 Zahlen ein:!\n";


	cin >> zahl;


	//if ()


	//{}



	// Programm läuft einwandfrei , es gibt daher 0 zurück.

	return 0;[/code]

Danke Euch.

Bearbeitet von skejcik

Wenn du erst seit 4 Tagen in der Ausbildung bist, wieso hast du keinen Ausbilder der dir ein bisschen was erklären kann ?!?

Meinem Vorredner möchte ich mich anschließen:

Deine Fragestellung ist unter aller Sau !!

Aber man muss nur kurz drüber schauen um zu erkennen, dass derartige Abfragen:


if (a==a) 

ziemlich sinnlos sind oder ;)?

Bearbeitet von BiancoNieri

Gast
Dieses Thema ist für weitere Antworten geschlossen.

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.