После отладки я получил эту ошибку:
Выдано исключение: нарушение прав на чтение.
_Val было 0x19B6C345688.
Код: Выделить всё
#include
#include
#include
#include
using namespace std;
struct Item
{
string description;
int quantity;
double wCost;
double rCost;
string dateAdded;
};
int addRecord();
int displayRecord();
int changeRecord();
int main()
{
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79129706/program-closes-before-function-returns-to-main-exception-thrown-read-access-vi[/url]