Project 2 Clarifications


Problem with random function The known problem with the random function will occur at runtime. If you think you are having a problem with the random function at compile time, you're not (unless you have changed code that you shouldn't have changed). If you have a problem at runtime, let me know ASAP.

Compiling in Visual C++ Some people have gotten a strange set of errors which refer to "function-style initializer" and "unexpected end of file". If you get these errors, it likely means you have saved your code in a C++ file (i.e., something.cpp). Make sure your "C++ Source File" is named something.c. You will probably get a series of warnings. That's okay -- ignore them.

Debugging Debugging is the MOST time consuming part of programming. Everyone gets compiler errors. That does not mean that you have done something wrong and need help. That means that you need to continue working on the project. There are two cases when you should come to me with a compiler error. First case: you are ABSOLUTELY convinced that the error was caused by my code or an incompatibility between the environment you are compiling in and the code that I gave you. In this case, you should be able to justify why you are convinced that the error is not yours. Second case: you have spent an extraordinary amount of time (for example, greater than 1 hour -- not 3 mintues!) trying to figure out the problem and have still not found a solution. In this case, you should be able to explain to me the process that you have gone through to try to identify and fix the problem.
Sami Rollins