| 145 | void showChoicesforMainMenu2(); |
| 146 | |
| 147 | int main() |
| 148 | { |
| 149 | int choice; |
| 150 | DayTime t2(25, 0, 0); |
| 151 | int hour, minute, second; |
| 152 | do |
| 153 | { |
| 154 | showChoicesforMainMenu(); |
| 155 | cin >> choice; |
| 156 | switch (choice) |
| 157 | { |
| 158 | // for program 1 |
| 159 | case 1: |
| 160 | { |
| 161 | system("cls"); |
| 162 | int choice2; |
| 163 | |
| 164 | DayTime h1(10, 10, 10); |
| 165 | DayTime h2; |
| 166 | cin >> h2; |
| 167 | |
| 168 | showChoicesforMainMenu2(); |
| 169 | |
| 170 | do |
| 171 | { |
| 172 | cin >> choice2; |
| 173 | switch (choice2) |
| 174 | { |
| 175 | case 1: |
| 176 | cout << h2; |
| 177 | cout << endl |
| 178 | << endl; |
| 179 | cout << "Enter your choice: "; |
| 180 | break; |
| 181 | case 2: |
| 182 | cout << h2.asSeconds() << endl; |
| 183 | cout << "Enter your choice: "; |
| 184 | break; |
| 185 | case 3: |
| 186 | ++h2; |
| 187 | h2.DisplayTime(); |
| 188 | cout << h2.asSeconds(); |
| 189 | cout << endl |
| 190 | << endl; |
| 191 | cout << "Enter your choice: "; |
| 192 | break; |
| 193 | case 4: |
| 194 | --h2; |
| 195 | h2.DisplayTime(); |
| 196 | cout << endl |
| 197 | << endl; |
| 198 | cout << "Enter your choice: "; |
| 199 | break; |
| 200 | case 5: |
| 201 | system("cls"); |
| 202 | main(); |
| 203 | break; |
| 204 | default: |
nothing calls this directly
no test coverage detected