Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C++ Compiler.
- Code, Compile, Run and Debug C++ program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <iostream>
- using namespace std;
- struct CASA
- {
- int A;
- int a;
- };
- CASA
- cin_Array ()
- {
- CASA INput[10];
- for (int A = 0; A < 4; A++)
- {
- cout << "Bitte geben Sie die Zahl " << A << "ein: ";
- cin >> INput[A].a;
- cout << endl << "Im array" << A << " steht der Wert a = : " <<
- INput[A].a << endl;
- }
- return INput[10];
- }
- int Berechnung (CASA INput)
- {
- int ergebnis;
- cout<<ergebnis.INput[1].a;
- return ergebnis;
- }
- int
- main ()
- {
- CASA CASA = cin_Array ();
- Berechnung (CASA);
- cout << "Hello World" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment