Run time check failure #3. The variable 'myguess' is being used without being initialized

I am very very new to C++ and am trying to make a program which allows users to shuffle a deck of cards nd then if they match the two letters by picking two numbers then they are taken out of the deck. Any help with the runtime error and also the making of the program would be very much appreciated.
This is my code so far:

[code]#include <stdio.h>
Last edited on
First, use int main() instead of void main().

Your program is you are trying to use myguess in your while loop, but the first time it enters the loop, myguess hasn't been initialized to anything.
Topic archived. No new replies allowed.