@@ -75,7 +75,7 @@ void Reservation::bookTicket()
75
75
76
76
while (!busFileStream.eof ())
77
77
{
78
- if (_strcmpi (b.getSource (), from) == 0 && _strcmpi (b.getDestination (), to) == 0 )
78
+ if (strcmp (b.getSource (), from) == 0 && strcmp (b.getDestination (), to) == 0 )
79
79
{
80
80
b._displayBusDetails ();
81
81
chk = 1 ;
@@ -105,7 +105,7 @@ void Reservation::bookTicket()
105
105
106
106
while (!busFileStream.eof ())
107
107
{
108
- if (_strcmpi (b.getSource (), from) == 0 && _strcmpi (b.getDestination (), to) == 0 && strcmp (b.getBusNo (), bNo) == 0 )
108
+ if (strcmp (b.getSource (), from) == 0 && strcmp (b.getDestination (), to) == 0 && strcmp (b.getBusNo (), bNo) == 0 )
109
109
{
110
110
if (b.getBookedSeats () >= 32 )
111
111
{
@@ -503,7 +503,7 @@ void Reservation::viewReservationsBySource()
503
503
504
504
while (!ticketFileStream.eof ())
505
505
{
506
- if (_strcmpi (bus.getSource (), s) == 0 )
506
+ if (strcmp (bus.getSource (), s) == 0 )
507
507
{
508
508
_displayReservationDetails ();
509
509
chk = 1 ;
@@ -550,7 +550,7 @@ void Reservation::viewReservationsByDestination()
550
550
551
551
while (!ticketFileStream.eof ())
552
552
{
553
- if (_strcmpi (bus.getDestination (), d) == 0 )
553
+ if (strcmp (bus.getDestination (), d) == 0 )
554
554
{
555
555
_displayReservationDetails ();
556
556
chk = 1 ;
0 commit comments