MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main

Function main

Lab_11/Source.cpp:160–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160int main()
161{
162
163 string user_choise;
164 main_menu_view();
165 cin >> user_choise;
166
167 // main_menu_validation_check
168 if (user_choise == "1")
169 {
170 system("cls");
171 int x;
172 cout << "Input Age: ";
173 cin >> x;
174 Person person1, person2(x);
175 person1.Display();
176 cout << endl;
177 person2.Display();
178 }
179 else if (user_choise == "2")
180 {
181 system("cls");
182 cout << "Records: " << endl;
183 string name;
184 float salary;
185 string date_of_birth;
186 cout << "Name: ";
187 cin >> name;
188 cout << "Salary: ";
189 cin >> salary;
190 cout << "Date of birth: ";
191 cin >> date_of_birth;
192
193 Records record1, record2(name, salary, date_of_birth);
194 record1.Display();
195 record2.Display();
196 cout << endl;
197
198 Records *ptr = &record1;
199 ptr->alert_name();
200 ptr->alert_salary();
201 ptr->alert_date();
202
203 record1.Display();
204 record2.Display();
205 }
206 else if (user_choise == "3")
207 {
208 system("cls");
209 Account a;
210 a.Display();
211 a.~Account();
212 }
213 else if (user_choise == "4")
214 {
215 system("cls");
216 Rectangle r;
217 double width1, height1;

Callers

nothing calls this directly

Calls 10

alert_nameMethod · 0.80
alert_salaryMethod · 0.80
alert_dateMethod · 0.80
~AccountMethod · 0.80
setHeightMethod · 0.80
setWidthMethod · 0.80
getPerimeterMethod · 0.80
main_menu_viewFunction · 0.70
DisplayMethod · 0.45
getAreaMethod · 0.45

Tested by

no test coverage detected