Problem with visual C++ 2013


Removed
Last edited on
See if the location of your .exe has changed.
Make sure the startup path is correct in project properties.

Also, numRight() is not returning a value in main.
edit: I should say, you are doing nothing with this value.
numCorrect = whatever was stored as numCorrect in the past. Your program does not change it's value.
Last edited on
removed
Last edited on
After re-installing visual studio, you tried creating a brand new project, copy/paste this code, and compile?
Still no success? Yikes

P.S. I have confirmed this program does not compile.
...\documents\visual studio 2013\projects\onlinehelp1\onlinehelp1\source.cpp(22): error C4700: uninitialized local variable 'numCorrect' used


As I said, but that could not be throwing the main error your experiencing... I don't think.
Last edited on
removed
Last edited on
I apologize, but I have no idea. I am curious what the problem is. Please let us know if you figure it out.
removed
Last edited on
removed
Last edited on
1
2
3
4
5
6
7
for (int i = 0; i < correctAnswers.size; i++)
{
if (correctAnswers[i] == given[i])
DO SOMETHING, THEY ARE THE SAME;
else
DO SOMETHING, THEY ARE DIFFERENT;
}
Last edited on
removed
Last edited on
Are you still asking a question? You never said if you fixed the error. I'm sorry but I don't know what the point of your last post was.
removed
Last edited on
Your professor said "I don't know" and sent you on your way.... Make sure to warn others of his negligence online. That's unacceptable.
Topic archived. No new replies allowed.