include iostream using namespace std struct foundation string name str

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <iostream>
using namespace std;
struct foundation {
string name;
string city;
string street;
string home;
int entrance;
};
int main() {
struct foundation address;
printf("Enter name of the foundation:");
cin >> address.name;
printf("Enter city of the foundation:");
cin >> address.city;
printf("Enter street of the foundation:");
cin >> address.street;
printf("Enter home of the foundation:");
cin >> address.home;
printf("Enter entrance of the foundation:");
cin >> address.entrance;
cout << "Name: " << address.name << endl;
cout << "City: " << address.city << endl;
cout << "Street: " << address.street << endl;
cout << "Home: " << address.home << endl;
cout << "Entrance: " << address.entrance << endl;
return 0;
}