I am receiving error Unhandled exception at 0x00e51c51 in project.exe: 0xC0000005: Access violation writing location 0x00000000 when I run the following code:
#pragma once
#include <iostream>
using namespace std;
You have a pointer that is a null pointer. This means it doesn't point to any memory. It has a value of zero. The big clue is this great big zero: 0x00000000
How do I fix it?
Work out which pointer is a null pointer, and don't dereference it.