update commits
parent
256ca87ec8
commit
a13a772b15
10
main.cpp
10
main.cpp
|
@ -16,7 +16,7 @@ public:
|
||||||
string id, date, description;
|
string id, date, description;
|
||||||
double profit, loss;
|
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) {}
|
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): ";
|
cout << "Enter date (YYYY-MM-DD): ";
|
||||||
cin >> date;
|
cin >> date;
|
||||||
cout << "Enter description: ";
|
cout << "Enter description: ";
|
||||||
cin.ignore(); // Clear input buffer
|
cin.ignore(); // Notīrīt ievades buferi
|
||||||
getline(cin, description);
|
getline(cin, description);
|
||||||
cout << "Enter amount: ";
|
cout << "Enter amount: ";
|
||||||
cin >> profit;
|
cin >> profit;
|
||||||
|
@ -143,7 +143,7 @@ void edit_record(vector<FinancialRecord>& records) {
|
||||||
cout << "Enter new date (YYYY-MM-DD): ";
|
cout << "Enter new date (YYYY-MM-DD): ";
|
||||||
cin >> record.date;
|
cin >> record.date;
|
||||||
cout << "Enter new description: ";
|
cout << "Enter new description: ";
|
||||||
cin.ignore(); // Clear input buffer
|
cin.ignore(); // Notīrīt ievades buferi
|
||||||
getline(cin, record.description);
|
getline(cin, record.description);
|
||||||
cout << "Enter new profit amount: ";
|
cout << "Enter new profit amount: ";
|
||||||
cin >> record.profit;
|
cin >> record.profit;
|
||||||
|
@ -200,12 +200,12 @@ void save_records_to_file(const vector<FinancialRecord>& records) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void user_enter_check() {
|
void user_enter_check() {
|
||||||
// Functionality to check user authentication
|
// Funkcionalitāte lietotāja autentifikācijas pārbaudei
|
||||||
cout << "\nChecking user authentication...";
|
cout << "\nChecking user authentication...";
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw_graph() {
|
void draw_graph() {
|
||||||
// Functionality to draw graphs
|
// Grafiku zīmēšanas funkcionalitāte
|
||||||
cout << "\nDrawing graphs...";
|
cout << "\nDrawing graphs...";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue