I need to be able to pass the data I enter into my check. I do not think I have my check set up right though. I will post my code.
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
string todaysDate;
string firstName;
string lastName;
double amount;
void enterData();
void printCheck();
int _tmain(int argc, _TCHAR* argv[])
{
enterData();
printCheck();
return 0;
}
void enterData()
{
cout << "Enter today's date: ";
cin >> todaysDate;
cout << "Enter the first name: ";
cin >> firstName;
cout << "Enter the last name: ";
cin >> lastName;
cout << "Enter the amount: ";
cin >> amount;
}
void printCheck()
{
cout << "Zzyz Corp Date: (today's date)"<<endl;
cout << "1164 Sunrise Avenue "<<endl;
cout << "Kalispell, Montana\n "<<endl;
cout << "Pay to the order of: (string firstName lastName) $ (amount)\n "<<endl;
cout << "UnderSecurity Bank "<<endl;
cout << "Missoula, MT "<<endl;
cout << " ____________________"<<endl;
cout << " Authorized Signature";
cout << endl << endl;
}