do you want a method to calculate percentage or just display in this example? as it stands now:
#include "stdafx.h"
#include<iostream>
using namespace std;
int num_correct=0; //initialize a...
Type: Posts; User: todouble22
do you want a method to calculate percentage or just display in this example? as it stands now:
#include "stdafx.h"
#include<iostream>
using namespace std;
int num_correct=0; //initialize a...
I'm not attempting to discredit your assistance to the user but in the beginning it can be a bit daunting and at least as i've noticed its best to fully explain
oldman, the user paulb39 is a noob. you're giving him examples of functions and calling to them within your main method.. do you seriously think that will get what you're doing without even knowing...
first off if you're going to do it this way, you will have to satisfy the rest of the possible answers in your if statements. You have one for your 100% answer. Think of the other scenarios that...
OKAY FOR THE 1000
if (firstGuess == firstResult || firstGuess == secondResult || firstGuess == thirdResult
&& secondGuess == firstResult || secondGuess == secondResult || secondGuess ==...
yes i do i have that in the part for the 100 i think?.. and firstly, thank you very much for your help! now i need to work it so that two matching will result in a win for $100.
the million dollar one is easy since they all have to be exactly equivalent in order.. so here goes: for the 1000 which is 3 matching not in order. first guess can == first result or second result...
The number can come out more than once but my problem is doing the comparisons of all the possible drawn numbers to that of the guessed numbers. I'm having a real hard time with it. *banging head on...
Thanks for your help daved!
I got the idea of the if else statements. what about functions. my book is pretty vague. like a struct for numbers? i guess i'm a lil lost with that?
could you just give me an example of the if else part of it? I am looking into functions now.. I appreciate all of you assistance..
Funny that you mention that because that is another part of the problem that I need to add in? Like if the user picks 1.2.3 and the computer generates 1.1.1 i need to make it so that it doesnt give...
Hello all this is my first post and I have been lurking about since I have found this site. So here is my dilemma, I have a problem for school that will generate 3 random numbers between 0 and 9. ...