"An access violation (Segmentation Fault) raised in your program."
- by Mark
My C++ program compiles and works up until I call this function from main():
int uword(){fstream infile("numbers.txt");
fstream exfile("wordlist.txt");
string numb[numoflines];
string lines[numoflines];
number = 1;
line = 1;
for(int i=0;!infile.eof();++i)
{
getline (infile,number);
numb[i] = number;
getline (exfile,line);
lines[i] = line;
}
infile.close();
exfile.close();
string yourword;
Something here causes it to crash, in the debug it pops up with "An access violation (Segmentation Fault) raised in your program."