Hello, I am having a problem with my program. I'll post the code and problem..
/*Modify this program so that prior to displaying the simulated sales slip, it asks for the
following data:
1. The date. Expect the user to enter a date in the form MM/DD/YY. This should be
entered as a string and stored in a char array.
2. The quantity of the book being purchased. Store this number in an integer
variable.
3. The ISBN number of the book being purchased. The ISBN number is a string that
contains numbers and hyphens. Use a char array to store it.
4. The title of the book. Store the book title in a char array.
5. The unit price of the book. Store this number in a float variable.
Once this data is entered, the program should calculate the merchandise total (multiply
quantity by price), and a 6 percent sales tax. The program should then display the
simulated sales slip.
The dollar amounts should all be displayed in fields of six spaces with two decimal
places of precision. They should always be displayed in fixed-point notationand the
decimal point should always appear. */
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
const int SIZE = 30;
char date[SIZE], //The date
ISBN[SIZE], //The ISBN number of the book
book_title[SIZE]; //The title of a book
int Book_num; //The numebr of book being purchased
float unit_price; //The unit price of a book
double SubTotal,
Tax,
Total;
Everything works fine, but when it gets to the cin.getline it skips it and goes to price instead. Please tell me what is wrong with the code or the cin.getline.