I solve one problem and hit another. Of course. Ok. In my program, I am trying to get a line from a txt file through fstream with these three lines: ifstream input("EnglishQuestions.txt"); char * question = "abc"; input.getline(question, 256); And my program keeps crashing (as in, it says "Project has stopped working. Checking for a solution to the problem" and does that little thing where it pretends to be helping you) I've clicked the debug button there, and it got me nowhere. The problem is the input.getline line, because if I comment it out, the program runs fine. Why would this cause a crash? Txt file says: Which part of the sentence is incorrect: My cat has discovered... (etc not important)
|