-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcombat_chronicles_new.cpp
More file actions
840 lines (764 loc) · 27.6 KB
/
Copy pathcombat_chronicles_new.cpp
File metadata and controls
840 lines (764 loc) · 27.6 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <windows.h>
using namespace std;
struct Player
{
string name;
string playerClass;
string inventory[5];
string weapon;
int health;
int level;
int levelMax;
int experiencePoints;
int attack;
};
struct Enemy
{
string enemyName;
int enemyHealth;
int difficultyLevel;
};
string lowerString(string str) // This function converts Uppercase Letters into Lowercase Letters
{
for (int i = 0; str[i] != '\0'; i++)
{
if (str[i] >= 'A' && str[i] <= 'Z')
{
str[i] = str[i] + 32; // Adding 32 in string[i] will change ASCII code and convert it into lowercase letters
}
}
return str;
}
string upperString(string str)
{
for (int i = 0; str[i] != '\0'; i++)
{
if (str[i] >= 'a' && str[i] <= 'z')
{
str[i] = str[i] - 32;
}
}
return str;
}
bool validateAlphaString(string name) //User defined function declaration
{
for (const char c : name)
{
if (!isalpha(c) && !isspace(c))
return false;
}
return true;
}
string getValidName(string name)
{
while (!validateAlphaString(name))
{
cout << "Wrong Input ! please USE only alphabets for name" << endl;
cout << "Enter Name: ";
getline(cin, name);
}
return name;
}
string input(string x)
{
while(true)
{
if (cin.fail())
{
cin.clear();
}
else if ( !cin.fail() )
{
return x;
}
}
}
void Quit()
{
cout << setw(50) << " ~ GOODBYE! ~ " << endl;
}
void initializePlayer(Player& player)
{
cout << "\n\n" << setw(70) << " =< CREATING PLAYER >= " << endl << endl << endl;
cout << "Player Name: ";
while(true)
{
getline(cin, player.name);
player.name = input(player.name);
player.name = getValidName(player.name);
player.name = upperString(player.name);
if (player.name.empty() && !validateAlphaString(player.name))
{
cout << "Invalid Input ! " << endl;
}
else if(player.name.length() < 3 || player.name.length() > 8)
{
cout << "Length must be between 3 to 8 characters." << endl;
}
else
{
player.name;
break;
}
cout << "Enter name: ";
}
while (true)
{
cout << endl << setw(65) << " =< CLASSES >= ";
cout << "\n\n* SKY HUNTER\n\n* EMBER KNIGHT\n\n* RUNE SAGE " << endl;
cout << endl << setw(67) << " =< DESCRIPTION >= ";
cout << "\n\n* SKY HUNTER : Aerial Precision\n\n* EMBER KNIGHT : Fiery Warrior\n\n* RUNE SAGE : Mystical Scholar" << endl;
cout << endl;
cout << "\nChoose your class: ";
getline(cin, player.playerClass);
player.playerClass = input(player.playerClass);
player.playerClass = upperString(player.playerClass);
if (player.playerClass == "SKY HUNTER" || player.playerClass == "EMBER KNIGHT" || player.playerClass == "RUNE SAGE")
{
player.playerClass;
break;
}
else
{
cout << "\nThat class does not belong in this realm.." << endl;
}
}
player.experiencePoints = 0;
player.level = 1;
player.health = 100;
player.levelMax = 5;
}
void EnemyInfo(Player& player, Enemy& enemy)
{
cout << "Press ( 1 to 9 ) for body shoot" << endl;
cout << "Press ( 0 ) for headshot" << endl;
if (player.level == 1)
{
cout << setw(60) << " === LEVEL 1 === " << endl << endl;
enemy.enemyName = " TWILIGHT SERPENT";
enemy.enemyHealth = 50;
enemy.difficultyLevel = 1;
cout << "Foe Identified: " << enemy.enemyName << endl;
cout << "Vitality: " << enemy.enemyHealth << endl;
cout << "Difficulty Rank: " << enemy.difficultyLevel << endl;
cout << endl << endl;
Sleep(2000);
cout << endl << endl;
cout << "Level 1: The Arena Awaits Your Courage!" << endl;
cout << "The TWILIGHT SERPENT slithers in the murky depths, its venomous strike a silent threat in the dark. " << endl;
cout << "Face it now to prove your strength in the first trial of your journey..." << endl << endl;
}
else if (player.level == 2)
{
cout << setw(60) << " === LEVEL 2 === " << endl;
enemy.enemyName = " THUNDER BEAST";
enemy.enemyHealth = 100;
enemy.difficultyLevel = 2;
cout << "Foe Identified: " << enemy.enemyName << endl;
cout << "Vitality: " << enemy.enemyHealth << endl;
cout << "Difficulty Rank: " << enemy.difficultyLevel << endl;
Sleep(2000);
cout << endl << endl;
cout << "Level 2: Get Ready To Rumble!" << endl;
cout << "A creature born from the strorm, the THUNDER BEAST roars with the fury of the sky itself. " << endl;
cout << "Its lightning-infused strikes will test your resilience as you venture deeper into the unknown..." << endl << endl;
}
else if (player.level == 3)
{
cout << setw(60) << " === LEVEL 3 === " << endl << endl;
enemy.enemyName = " BLOODVEIL SORCERER";
enemy.enemyHealth = 130;
enemy.difficultyLevel = 3;
cout << "Foe Identified: " << enemy.enemyName << endl;
cout << "Vitality: " << enemy.enemyHealth << endl;
cout << "Difficulty Level: " << enemy.difficultyLevel << endl;
cout << endl << endl;
Sleep(2000);
cout << "Level 3: Seize Glory in the Arena!" << endl;
cout << "Once a revered scholar, the BLOODVEIL SORCERER now commands dark, forbidden magic." << endl;
cout << "Defeat him and you may unlock the secrets of arcane powers he has embraced..." << endl;
}
else if (player.level == 4)
{
cout << setw(60) << " === LEVEL 4 === " << endl << endl;
enemy.enemyName = " VOID PHANTOM";
enemy.enemyHealth = 150;
enemy.difficultyLevel = 4;
cout << "Foe Identified: " << enemy.enemyName << endl;
cout << "Vitality: " << enemy.enemyHealth << endl;
cout << "Difficulty Rank: " << enemy.difficultyLevel << endl;
cout << endl << endl;
Sleep(2000);
cout << "Level 4: Enter The Realm of Eternal Combat!" << endl;
cout << "Emerging from the rift between worlds, the VOID PHANTOM is a wraith of forgotten souls." << endl;
cout << "Only the bravest dare to face it, for its power comes from the very fabric of reality itself..." << endl;
cout << endl << endl;
}
else if (player.level = player.levelMax)
{
cout << setw(60) << " === FINALE === " << endl << endl;
enemy.enemyName = " SHADOWSTRIKE RAIDER";
enemy.enemyHealth = 200;
enemy.difficultyLevel = 5;
cout << "Foe Identified: " << enemy.enemyName << endl;
cout << "Vitality: " << enemy.enemyHealth << endl;
cout << "Difficulty Rank: " << enemy.difficultyLevel << endl;
cout << endl << endl;
Sleep(2000);
cout << "The Grand Showdown" << endl;
cout << "A master of stealth and assassination, the SHADOWSTRIKE RAIDER is the final obstacle in your path." << endl;
cout << "Survive its ambush, and you will prove yourself worthy of becoming a legend..." << endl;
}
}
void displayPlayerInfo(Player& player)
{
cout << setw(65) << "~< Character Information >~\n\n";
cout << "Name: " << player.name << endl;
cout << "Class: " << player.playerClass << endl;
cout << "Health: " << player.health << endl;
cout << "Experience Points: " << player.experiencePoints << endl;
if (player.level > player.levelMax)
{
player.level = 5;
}
cout << "== Level: " << player.level << " ==" << "\n\n";
}
string Weapon(Player& player)
{
if (player.level == 1)
{
player.weapon = "Crimson Petal Lance";
player.inventory[0] = player.weapon;
return player.weapon;
}
if (player.level == 2)
{
player.weapon = "Light Wind Blade";
player.inventory[1] = player.weapon;
return player.weapon;
}
if (player.level == 3)
{
player.weapon = "Thundersong Bow";
player.inventory[2] = player.weapon;
return player.weapon;
}
if (player.level == 4)
{
player.weapon = "Flame Sword";
player.inventory[3] =player.weapon;
return player.weapon;
}
if (player.level == 5)
{
player.weapon = "Phoenix Blade";
player.inventory[4] = player.weapon;
return player.weapon;
}
}
void inventory(Player& player)
{
player.inventory[0] = " Crimson Petal Lance";
player.inventory[1] = " Light Wind Blade";
player.inventory[2] = " Thundersong Bow";
player.inventory[3] = " Flame Sword";
player.inventory[4] = " Phoenix Blade";
cout << endl;
cout << setw(35) << "=<>= Explore Your Vault =<>=" << endl;
cout << endl;
cout << " 1. Crimson Petal Lance" << setw(20) << "at Level : 1" << endl;
cout << " 2. Light Wind Blade" << setw(23) << " at Level : 2" << endl;
cout << " 3. Thundersong Bow" << setw(24) << " at Level : 3" << endl;
cout << " 4. Flame Sword" << setw(28) << " at Level : 4" << endl;
cout << " 5. Phoenix Blade" << setw(26) << " at Level : 5" << endl;
cout << endl;
}
int levelUp(Player& player)
{
if (player.experiencePoints >= 100)
{
player.level++;
if (player.level == 5)
{
player.level = player.levelMax;
}
player.health = 100;
player.experiencePoints = 0;
if (player.level > player.levelMax)
{
Sleep(2000);
cout << "The SHADOWSTRIKE RAIDER, the ultimate test of skill and perseverance, has been defeated. But with victory comes the realization: the trials were all leading to this moment. The adventurer, now empowered by the wisdom and strength gained, must confront the ancient evils in the stirring in the shadows, alone, with the fate of the realm resting in their hands. " << endl << endl;
}
else
{
cout << "\nWelldone, brave adventurer! You have ascended to Level : " << player.level << ". The realm trembles at your rise! " << endl;
return player.level;
}
}
}
int PlayerAttack(Player& player)
{
string ch;
cin >> ch;
ch = input(ch);
ch = lowerString(ch);
while(true)
{
if (!cin.eof() && !cin.fail())
{
if (ch == "1")
{
player.attack = 3;
return player.attack;
true;
}
else if (ch == "2")
{
player.attack = 6;
return player.attack;
true;
}
else if (ch == "3")
{
player.attack = 9;
return player.attack;
true;
}
else if (ch == "4")
{
player.attack = 12;
return player.attack;
true;
}
else if (ch == "5")
{
player.attack = 15;
return player.attack;
true;
}
else if (ch == "6")
{
player.attack = 18;
return player.attack;
true;
}
else if (ch == "7")
{
player.attack = 21;
return player.attack;
true;
}
else if (ch == "8")
{
player.attack = 24;
return player.attack;
true;
}
else if (ch == "9")
{
player.attack = 27;
return player.attack;
true;
}
else if (ch == "0")
{
player.attack = 50;
return player.attack;
true;
}
else
{
player.attack = 0;
break;
}
}
else if (cin.eof() && cin.fail())
{
cin.clear();
player.attack = 0;
break;
}
};
}
void battle(Player& player, Enemy& enemy)
{
cout << "\nPlayer Weapon: " << Weapon(player) << endl << endl;
cout << setw(40) << player.name << setw(15) << "V/S" << setw(20) << enemy.enemyName << endl;
while (true)
{
int enemyAttack = rand() % 30 + 5; //Simulates enemy attack
if (player.health > 0)
{
PlayerAttack(player);
cout << "You attack the " << enemy.enemyName << " for " << "'" << player.attack << "'" << " damage." << endl;
enemy.enemyHealth = enemy.enemyHealth - player.attack;
if (enemy.enemyHealth > 0)
{
cout << enemy.enemyName << " attacks you for " << enemyAttack << " damage. " << endl;
player.health = player.health - enemyAttack;
if (player.health <= 0)
{
player.health = 0;
cout << "\nYour Vitality: " << player.health << setw(25) << enemy.enemyName << "S" << " Vitality: " << enemy.enemyHealth << endl;
while (true)
{
cout << "You were defeated.\n\n";
up:
cout << "Do you want to play again (Y / N)...";
string choice;
choice = input(choice);
choice = lowerString(choice);
cin >> choice;
if (choice == "y" || choice == "Y")
{
system("cls");
cout << setw(50) << "LEVEL " << player.level << endl;
battle(player, enemy);
}
else if (choice == "n" || choice == "N")
{
cout << "Do you want to quit the game (Y / N)...";
jump:
cin >> choice;
choice = input(choice);
choice = lowerString(choice);
if (choice == "Y" || choice == "y")
{
system("cls");
Quit();
}
else if (choice == "n" || choice == "N")
{
cout << endl;
goto up;
}
else
{
cout << "Invalid Input ! ";
goto jump;
}
}
};
}
else
{
cout << "\nYour Health: " << player.health << setw(25) << enemy.enemyName << " Health: " << enemy.enemyHealth << endl;
true;
}
true;
}
else if (enemy.enemyHealth <= 0)
{
enemy.enemyHealth = 0;
cout << "\nYour Health: " << player.health << setw(25) << enemy.enemyName << " Health: " << enemy.enemyHealth << endl;
cout << "You defeated: " << enemy.enemyName << " You earned 100 experience points. " << endl;
player.experiencePoints = player.experiencePoints + 100;
levelUp(player);
break;
}
}
else if (player.health <= 0)
{
player.health = 100;
true;
}
}
}
void gameLoop(Player& player, Enemy& enemy)
{
levelUp(player);
EnemyInfo(player, enemy);
battle(player, enemy);
}
void Controls()
{
cout << endl;
cout << setw(35) << "=<>= Channel Your Fury =<>=" << endl << endl;
cout << " Press 1 to knock 3 points off their health!" << endl;
cout << " Press 2 to knock 6 points off their health!" << endl;
cout << " Press 3 to knock 9 points off their health!" << endl;
cout << " Press 4 to knock 12 points off their health!" << endl;
cout << " Press 5 to knock 15 points off their health!" << endl;
cout << " Press 6 to knock 18 points off their health!" << endl;
cout << " Press 7 to knock 21 points off their health!" << endl;
cout << " Press 8 to knock 24 points off their health!" << endl;
cout << " Press 9 to knock 27 points off their health!" << endl;
cout << " Press 10 to knock 30 points off their health!" << endl;
cout << endl;
cout << " Press ( 1 to 9 ) for bodyshoot !" << endl;
cout << " Press ( 0 ) for headshoot ! " << endl;
cout << endl;
}
void StoryLine(Player& player)
{
cout << endl << endl << setw(70) << "Combat Chronicles: The Battle Begins" << endl << endl << endl;
cout << " In the heat of battle, heroes are made, and legends are written." << endl;
cout << " Welcome to the Combat Chronicles, where the story of your might and courage unfolds..." << endl << endl;
Sleep(3000);
cout << " Level 1 - Echoes of the Forgotten Path:" << endl;
cout << " The TWILIGHT SERPENT slithers in the murky depths, its venomous strike a silent threat in the dark." << endl;
cout << " Face it now to prove your strength in the first trial of your journey..." << endl << endl;
Sleep(3000);
cout << " Level 2 - Storms of the Horizon:" << endl;
cout << " A creature born from thr storm, the THUNDER BEAST roars with the fury of the sky itself." << endl;
cout << " Its lightning-infused strikes will test your resilience as you venture deeper into the unknown..." << endl << endl;
Sleep(3000);
cout << " Level 3 - Veil of Shadows:" << endl;
cout << " Once a revered scholar, the BLOODVEIL SORCERER now commands dark, forbidden magic." << endl;
cout << " Defeat him and you may unlock the secrets of the arcane powers he has embraced..." << endl << endl;
Sleep(3000);
cout << " Level 4 - Beyond the Rift:" << endl;
cout << " Emerging from the rift between the worlds, the VOID PHANTOM is a wraith of forgotten souls." << endl;
cout << " Only the bravest dare face it, for its power comes from the very fabric of reality itself..." <<endl << endl;
Sleep(3000);
cout << " Final Showdown - The Edge of Fate:" << endl;
cout << " A master of stealth and assassination, the SHADOWSTRIKE RAIDER is the final obstacle of your path." << endl;
cout << " Survive its ambush, and you will prove yourself worthy of becoming a legend..." << endl << endl;
Sleep(3000);
cout << " Embark on this legendary journey, rewrite the Chronicles of Combat, and emerge as the hero of Valor!" << endl << endl;
}
void End(Player& player, Enemy& enemy)
{
displayPlayerInfo(player);
cout << endl;
cout << player.name << " has triumphed over: " << endl << endl;
cout << "*TWILIGHT SERPENT\n*THUNDER BEAST\n*BLOODVEIL SORCERER\n*VOID PHANTOM\n*SHADOWSTRIKE RAIDER" << endl;
}
int main()
{
Player player;
Enemy enemy;
string ch;
system("cls");
cout << "\n\n\n\n";
cout << setw(65) << "~ COMBAT CHRONICLES ~\n" << endl << endl;
cout << " 1. Begin the Tale." << endl << endl;
cout << " 2. Enter the Realm." << endl << endl;
cout << " 3. Browse your Treasures." << endl << endl;
cout << " 4. Adventurer's Guide." << endl << endl;
cout << " 5. Escape the Journey." << endl << endl;
jump:
cin >> ch;
ch = input(ch);
ch = lowerString(ch);
while (true)
{
if (ch == "1")
{
system("cls");
StoryLine(player);
string choice;
do
{
cout << " Press y to continue your journey....";
cin >> choice;
choice = input(choice);
choice = lowerString(choice);
} while (choice != "y");
main();
break;
}
else if (ch == "2")
{
system("cls");
cin.ignore();
initializePlayer(player);
cout << endl << endl;
displayPlayerInfo(player);
play:
cout << " Ready to embark on your quest? (Y/N): ";
string choice;
cin >> choice;
choice = input(choice);
choice = lowerString(choice);
while(true)
{
if (choice == "y")
{
system("cls");
string c;
do
{
gameLoop(player, enemy);
up:
if (player.level > player.levelMax)
{
string choice;
do
{
again:
cout << "\nPress y to continue... ";
cin >> choice;
choice = input(choice);
choice = lowerString(choice);
if (choice == "y")
{
system("cls");
End(player, enemy);
do
{
y:
cout << " Press y to continue... ";
string x;
cin >> x;
x = input(x);
x = lowerString(x);
if (x == "y")
{
system("cls");
main();
}
else if (x != "y")
{
goto y;
}
} while (c != "y");
}
else if (choice != "y")
{
goto again;
}
} while (c != "y");
}
else if (player.level <= player.levelMax)
{
cout << " Ready for next level (Y/N): ";
cin >> c;
c = input(c);
c = lowerString(c);
if (c == "n" || c == "N")
{
cout << " Do you want to quit... (y/n): ";
choice:
string ch;
cin >> ch;
ch = input(ch);
ch = lowerString(ch);
if (ch == "Y" || ch == "y")
{
system("cls");
cout << displayPlayerInfo << endl;
return 0;
}
else if (ch == "n" || ch == "N")
{
goto up;
}
else
{
cout << " Invalid Input ! " << endl;
goto choice;
}
}
else if (c == "y" || c == "Y")
{
system("cls");
if (player.level > player.levelMax)
{
string choice;
do
{
cout << "\n Press y to continue.... ";
cin >> choice;
choice = input(choice);
choice = lowerString(choice);
if (choice == "y")
{
End(player, enemy);
}
} while (choice == "y");
main();
break;
}
}
else
{
cout << " Invalid Input ! " << endl;
goto up;
}
}
} while (c == "y" || c == "Y");
true;
}
else if (choice == "n" || choice == "N")
{
string choice;
cout << "\nDo you want to quit the game (Y/N): ";
do
{
ch:
cin >> choice;
choice = input(choice);
choice = lowerString(choice);
if (choice == "y" || choice == "Y")
{
Quit();
return 0;
}
else if (choice == "n" || choice == "N")
{
cout << " Invalid Input ! " << endl;
goto ch;
}
} while (choice == "Y" || choice == "y" || choice == "N" || choice == "n");
true;
}
else
{
cout << " Invalid Input ! " << endl;
goto play;
}
};
break;
}
else if (ch == "3")
{
system("cls");
inventory(player);
string choice;
do
{
cout << " Press y to continue... ";
cin >> choice;
choice = input(choice);
choice = lowerString(choice);
} while (choice != "y");
true;
main();
break;
}
else if (ch == "4")
{
system("cls");
Controls();
string choice;
do
{
cout << " Press y to continue... ";
cin >> choice;
choice = input(choice);
choice = lowerString(choice);
} while (choice != "y");
true;
main();
break;
}
else if (ch == "5")
{
system("cls");
cout << "\n\n\n\n\n\n";
Quit();
break;
}
else
{
cout << " Invalid Input ! " << endl;
goto jump;
}
};
}