update commits

main
Oskars Kuzņecovs 2024-04-30 09:29:02 +00:00
parent 256ca87ec8
commit a13a772b15
1 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ public:
string id, date, description;
double profit, loss;
// Constructor
// Konstruktors
FinancialRecord(string id, string date, string description, double profit, double loss) : id(id), date(date), description(description), profit(profit), loss(loss) {}
};
@ -87,7 +87,7 @@ void add_record(vector<FinancialRecord>& records) {
cout << "Enter date (YYYY-MM-DD): ";
cin >> date;
cout << "Enter description: ";
cin.ignore(); // Clear input buffer
cin.ignore(); // Notīrīt ievades buferi
getline(cin, description);
cout << "Enter amount: ";
cin >> profit;
@ -143,7 +143,7 @@ void edit_record(vector<FinancialRecord>& records) {
cout << "Enter new date (YYYY-MM-DD): ";
cin >> record.date;
cout << "Enter new description: ";
cin.ignore(); // Clear input buffer
cin.ignore(); // Notīrīt ievades buferi
getline(cin, record.description);
cout << "Enter new profit amount: ";
cin >> record.profit;
@ -200,12 +200,12 @@ void save_records_to_file(const vector<FinancialRecord>& records) {
}
void user_enter_check() {
// Functionality to check user authentication
// Funkcionalitāte lietotāja autentifikācijas pārbaudei
cout << "\nChecking user authentication...";
}
void draw_graph() {
// Functionality to draw graphs
// Grafiku zīmēšanas funkcionalitāte
cout << "\nDrawing graphs...";
}