
Q: How do I count the neighbors of a cell?īe careful not to go out of the bounds of the grid, if the square you're examining is on an edge of the grid.Īlso be careful not to count the current cell itself as a neighbor. If the line contains an integer or numeric token, call stringToInteger to convert it. Instead, repeatedly call getline on the file and then process that entire line. How do I detect the line endings and how do I know how many characters to read?Ī: We don't recommend reading the file character-by-character. Q: I am having trouble reading the grid from the file, character-by-character. Q: Can I add any other files to the program, other than life.cpp?Ī: No you should limit yourself to life.cpp and functions defined in that file. Q: I already know a lot of C/C++ from my previous programming experience.Ĭan I use advanced features, such as pointers, on this assignment?Ī: No you should limit yourself to using the material that was taught in class so far. Q: Can I use one of the STL containers from the C++ standard library, instead of a Grid?

Qt creator cannot open output file permission denied full#
Using an array will not receive full credit.

Q: Do I have to use a Grid on the assignment? Instead of saying new, you just write a statement such as:įor example, if you wanted to declare a grid of doubles and call the variable myGrid, you would write: I tried saying new Grid but it didn't compile.Ī: Constructing an object in C++ has a different syntax than in Java. You might also need to open your operating system's Task Manager to stop them all. Make sure to shut down any previously running instances of your program.Ĭlick Qt Creator's "3 Application Output" tab and click any of the red square "stop" sign buttons you see. \Life.exe: Permission denied".Ī: It means that your Life executable is still running from the last time you ran/tested the program a moment ago. Q: When I try to compile my program I see an error message, "cannot open output file. If you are still having trouble, please see SL Reid Watson's Tricky C++ Issues page for some possible solutions. Q: I'm having trouble getting Qt Creator to work! Help!Ī: Please make sure you followed the instructions in our Working at Home page. We are giving you out a starter project in Qt Creator's format, so if you were trying to use a different editor, you'd have to disassemble that starter project and put it back together in your editor's format, which might be difficult.Īlso, if you have any problems getting things to work in your editor, we will not be willing to help you fix them. Q: You said I need to use Qt Creator to write my homework, but I prefer a different editor (Visual Studio, Xcode, Eclipse, Netbeans, vim, emacs, etc.).Ĭan I use my favorite editor instead of Qt Creator?
