📄 application.cpp
字号:
////////////////////////////////////////
// File Name: Application.cpp
////////////////////////////////////////
#include <iostream>
#include <Application.h>
////////////////////////////////////////
// The string ReadData() function.
////////////////////////////////////////
void Application::ReadData(std::string& str,
const std::string& prompt)
{
std::cout << prompt << ": ";
std::getline(std::cin, str);
}
////////////////////////////////////////
// The Date ReadData() function.
////////////////////////////////////////
void Application::ReadData(Date& date,
const std::string& prompt)
{
std::cout << prompt << " (mm dd yy): ";
std::cin >> date;
}
////////////////////////////////////////
// The Money ReadData() function.
////////////////////////////////////////
void Application::ReadData(Money& money,
const std::string& prompt)
{
double mn;
std::cout << prompt << ": ";
std::cin >> mn;
money = mn;
}
////////////////////////////////////////
// The SSN ReadData() function.
////////////////////////////////////////
void Application::ReadData(SSN& ssn,
const std::string& prompt)
{
long sn;
std::cout << "SSN: ";
std::cin >> sn;
ssn = SSN(sn);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -