From a13a772b151065a0c7ac72507d7b95c9ccf22a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskars=20Kuz=C5=86ecovs?= Date: Tue, 30 Apr 2024 09:29:02 +0000 Subject: [PATCH] update commits --- main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index cf6c0b0..703348f 100644 --- a/main.cpp +++ b/main.cpp @@ -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& 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& 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& 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..."; }