Once again, thanks for your help. This is what I have now:
//Jonathan J. Vasquez
//Assignment 7
// Calculating parking cost
// This program calculate parking charges for the 10 customers that parked the day before.
#include <iostream>
#include <cstring>
#include <string>
#include <iomanip>...
Thanks for the help, now I'm trying to figure out how to do what you suggested. This is the kind of example the book gives:
// Prompt the user to enter a string
cout << "Enter a string: ";
char s[80];
cin.getline(s,80);
I'm not sure how to apply this concept to the excercise. The book doesn't...
Hello everyone,
I am trying to teach my self C++, and I am having trouble with the following code:
#include <iostream>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;
using std::setprecision;
using std::setw;
int main()
{
const int NUMBER_OF_STATES = 10;
const...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.