Alright, well I got that figured out, and moved on to the output screen finally. I am able to enter the figures that I want, but it also outputs more than should be in the string.
My current code is:
Code:
// CISC 192 Project 2 (Bookstore Order Program).cpp : Defines the entry point for the console application.
// Project for CISC 192. Creating a bookstore order program to estimate amount of books to order.
#include "stdafx.h"
#include <iostream>
#include <string>
#include <iomanip>
#include <cstdlib>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
// Beginning of Splash Screen
{
string resp = "x";
string isbn = "xx";
string title = "xx";
string author = "xx";
string enrollment = "xx";
string status = "xx";
string requirement = "xx";
string order = "xx";
system ("cls");
cout << endl;
cout << setw(53) << "San Diego Miramar College" << endl;
cout << endl;
cout << setw(52) << "Bookstore Order Program" << endl;
cout << endl;
cout << endl;
cout << endl;
cout << setw(48) << "Revision #: 1.0" << endl;
cout << endl;
cout << setw(52) << "Program By: Joshua Hess" << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << setw(53) << "Press <ENTER> To Continue";
getline(cin, resp);
// End of Splash Screen
// Start of Input Screen
system ("cls");
cout << endl;
cout << setw(53) << "San Diego Miramar College" << endl;
cout << endl;
cout << setw(52) << "Bookstore Order Program" << endl;
cout << setw(44) << "Rev# 1.0" << endl;
cout << endl;
cout << endl;
cout << " Enter The Book ISBN: ";
getline(cin, isbn);
cout << " Enter The Book Title: ";
getline(cin, title);
cout << " Enter The Book Author: ";
getline(cin, author);
cout << endl;
cout << endl;
cout << setw(79) << "------------------------------------------------------------------------------" << endl;
cout << endl;
cout << endl;
cout << " Enter The Estimate Enrollment: ";
getline(cin, enrollment);
cout << " Enter New or Used Book (N / U): ";
getline(cin, status);
cout << " Enter Required or Not Required (R / NR): ";
getline(cin, requirement);
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << setw(53) << "Press <ENTER> To Continue";
getline(cin, resp);
// End of Input Screen
// Start of Output Screen
system ("cls");
cout << endl;
cout << setw(53) << "San Diego Miramar College" << endl;
cout << endl;
cout << setw(52) << "Bookstore Order Program" << endl;
cout << setw(44) << "Rev# 1.0" << endl;
cout << endl;
cout << setw(26) << "ISBN : " << cout << isbn << endl;
cout << setw(26) << "Title : " << cout << title << endl;
cout << setw(26) << "Author : " << cout << author << endl;
cout << endl;
cout << setw(79) << "------------------------------------------------------------------------------" << endl;
cout << endl;
cout << setw(38) << "Projected Number of Books To Order" << endl;
cout << setw(78) << "For required books: Expected percentage of students buying a new book" << endl;
cout << setw(43) << "at 47%, and 35% purchasing if used." << endl;
cout << setw(77) << "For non-required books: Expected percentage of students buying a new" << endl;
cout << setw(48) << "book at 26%, and 10% purchasing if used." << endl;
cout << endl;
cout << setw(29) << "Expected Enrollment: " << cout << enrollment << endl;
cout << setw(36) << "Book Status (N=New,U=Used): " << cout << status << endl;
cout << setw(40) << "Required / Not Required (R/NR): " << cout << requirement << endl;
cout << endl;
cout << setw(47) << "Books To Order: " << cout << order << endl;
cout << endl;
cout << setw(53) << "Press <ENTER> To Continue";
getline(cin, resp);
return 0;
}
Also, I included an image of the output, hopefully this one is a bit clearer than my earlier attempt.
During this attempt I did not enter any values, and the base value should have been "xx" as defined in the beginning but it's not. Also, any value I enter for those strings just adds on to the 6C3BED48 that is for some reason in them.
Thank you again for any help.