-
Notifications
You must be signed in to change notification settings - Fork 0
/
AccountData.h
42 lines (34 loc) · 1.19 KB
/
AccountData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "Account.h"
#include "User.h"
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
void Add(vector<Account>& data);
void Print(vector<Account>& data);
void Save(const string& filename, vector<Account>& data);
void Get(const string& filename, vector<Account>& data);
bool CheckDate(int date);
bool is_leap(int year);
void PrintFind(const int index, vector<Account>& data);
void Print(Account account);
int AmountFind(vector<Account>& data);
int NameFind(vector<Account>& data);
int DateFind(vector<Account>& data);
int IndexFind(vector<Account>& data);
void Alter(int index, vector<Account>& data);
void AlterName(int index, vector<Account>& data);
void AlterDate(int index, vector<Account>& data);
void AlterAmount(int index, vector<Account>& data);
void AlterType(int index, vector<Account>& data);
void AlterNote(int index, vector<Account>& data);
void Delete(int index, vector<Account>& data);
void DateSequence(vector<Account>& data);
void NameSequence(vector<Account>& data);
void AmountSequence(vector<Account>& data);
void ResetIndex(vector<Account>& data);
void Count(vector<Account>& data);
extern vector<Account> Data;
extern int days[13];