So I have array that is up to 299 elements... but for some reason it when I run it.. i get an error stating "access violation writing location 0x976d4047.. and I believe it too be a memory issue as when I remove the 299th one it works fine.. any idea what could be causing this issue?
using namespace std;
random = (rand() % 299) + 1;
cout<<"Welcome to the random word generator currently filled with 298 words!";
wordlist="smash";//works up until this part
wordlist="spice";//crashes at this part