Guten Morgen!
Ich hab ein Problem mit den Datentypen! Mein Programm:
#include <iostream>
#include "conio.h"
using namespace std;
int dateneingabe();
int datenausgabe();
char firma, strasse, ort, land;
double plz;
int main ()
{
dateneingabe();
datenausgabe();
getch();
}
int dateneingabe()
{
cout<<"Eingabe der Adressen:"<<endl;
cout<<"Firma: ";
cin>>firma;
cout<<endl<<"Straße: ";
cin>>strasse;
cout<<endl<<"PLZ: "<<endl;
cin>>plz;
cout<<"Ort: ";
cin>>ort;
cout<<endl<<"Land: ";
cin>>land;
}
int datenausgabe()
{
cout<<endl<<"Firma: "<<firma<<endl;
cout<<"Strasse: "<<strasse<<endl;
cout<<"PLZ: "<<plz<<endl;
cout<<"Ort: "<<ort<<endl;
cout<<"Land: "<<land<<endl;
}
Ich kann in der Eingabe nur ein Buchstaben verwenden und nicht zusammengestellte Wörter! Was muss ich machen?