Enter file name here: toys
~WELCOME TO NEW HAMPSHIRE TOY STORE!~
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
1. View all toys.
2. Add a new toy data.
3. PURCHASE A TOY!
4. Display overall total of all purchases.
5. Update a toy's information.
6. Exit...
I pick option: 1
Toy ID: 1001
Toy Description: McDonald
Quantity Available: 0
Price: $0.00
Toy ID: 0
Toy Description:
Quantity Available: 0
Price: $0.00
Toy ID: 0
Toy Description:
Quantity Available: 0
Price: $0.00
~WELCOME TO NEW HAMPSHIRE TOY STORE!~
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
1. View all toys.
2. Add a new toy data.
3. PURCHASE A TOY!
4. Display overall total of all purchases.
5. Update a toy's information.
6. Exit...
I pick option: 6
Process returned 0 (0x0) execution time : 12.980 s
Press any key to continue.
If I remove the white spaces from the toy description as such:
Enter file name here: toys
~WELCOME TO NEW HAMPSHIRE TOY STORE!~
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
1. View all toys.
2. Add a new toy data.
3. PURCHASE A TOY!
4. Display overall total of all purchases.
5. Update a toy's information.
6. Exit...
I pick option: 1
Toy ID: 1001
Toy Description: McDonald
Quantity Available: 100
Price: $10.90
Toy ID: 1002
Toy Description: Dog
Quantity Available: 50
Price: $15.00
Toy ID: 1003
Toy Description: Hotwheels
Quantity Available: 1000
Price: $8.90
~WELCOME TO NEW HAMPSHIRE TOY STORE!~
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
1. View all toys.
2. Add a new toy data.
3. PURCHASE A TOY!
4. Display overall total of all purchases.
5. Update a toy's information.
6. Exit...
I pick option: 6
Process returned 0 (0x0) execution time : 5.884 s
Press any key to continue.
Can someone please teach me how do I solve this issue? I cannot use strings, only c-string is allowed.