Problem with visual C++ 2013

Nov 9, 2014 at 1:04am

Removed
Last edited on Nov 11, 2014 at 9:08pm
Nov 9, 2014 at 1:18am
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 Nov 9, 2014 at 1:27am
Nov 9, 2014 at 1:22am
removed
Last edited on Nov 11, 2014 at 9:09pm
Nov 9, 2014 at 1:37am
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 Nov 9, 2014 at 1:40am
Nov 9, 2014 at 1:37am
removed
Last edited on Nov 11, 2014 at 9:09pm
Nov 9, 2014 at 1:44am
I apologize, but I have no idea. I am curious what the problem is. Please let us know if you figure it out.
Nov 9, 2014 at 1:46am
removed
Last edited on Nov 11, 2014 at 9:09pm
Nov 9, 2014 at 3:16am
removed
Last edited on Nov 11, 2014 at 9:09pm
Nov 9, 2014 at 3:31am
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 Nov 9, 2014 at 3:33am
Nov 9, 2014 at 11:11pm
removed
Last edited on Nov 11, 2014 at 9:08pm
Nov 10, 2014 at 2:39am
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.
Nov 10, 2014 at 4:32pm
removed
Last edited on Nov 11, 2014 at 9:09pm
Nov 10, 2014 at 7:07pm
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.