Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: setting pixels colors Pin
Jack Handy2-May-02 12:18
Jack Handy2-May-02 12:18 
GeneralRe: setting pixels colors Pin
Chris Losinger2-May-02 12:46
professionalChris Losinger2-May-02 12:46 
GeneralI NEED HELP!!! Pin
Donna2-May-02 8:19
Donna2-May-02 8:19 
GeneralRe: I NEED HELP!!! Pin
Ravi Bhavnani2-May-02 8:32
professionalRavi Bhavnani2-May-02 8:32 
GeneralRe: I NEED HELP!!! Pin
Donna2-May-02 8:39
Donna2-May-02 8:39 
GeneralRe: I NEED HELP!!! Pin
Maximilien2-May-02 9:44
Maximilien2-May-02 9:44 
GeneralRe: I NEED HELP!!! Pin
Donna2-May-02 9:52
Donna2-May-02 9:52 
GeneralRe: I NEED HELP!!! Pin
Maximilien2-May-02 11:08
Maximilien2-May-02 11:08 
I think you're missing a couple of includes ...
#include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <time.h>
using namespace std;


1- Should try to validate each user input so that it's between 1 to 48 ...

2- The random generator only generates numbers up to 6 ( get it, up to 6 that's
a hint )

3- To check whether you've win or lost, you need to check each number of array "a"
with each number of array "num", now, you are only checking the last number of
num ( which by chance works ) because "i" luckily "5" because of the loop;
this function should either do everything ( with the 2 arrays as parameters ),
or with one user number and the picked number array and return true/false to
say whether the user picked a good number, and in that case, will increment a
counter that will enable you to do the "decision structure' ( a big if statement
or a case statement ).

4- you're on the way ...

Good luck.

Max.
GeneralRe: I NEED HELP!!! Pin
Maximilien2-May-02 11:09
Maximilien2-May-02 11:09 
GeneralRe: I NEED HELP!!! Pin
Christian Graus2-May-02 12:27
protectorChristian Graus2-May-02 12:27 
GeneralRe: I NEED HELP!!! Pin
Christian Graus2-May-02 12:26
protectorChristian Graus2-May-02 12:26 
GeneralRe: I NEED HELP!!! Pin
Maxwell Chen2-May-02 19:37
Maxwell Chen2-May-02 19:37 
GeneralRe: I NEED HELP!!! Pin
Donna3-May-02 18:07
Donna3-May-02 18:07 
GeneralRe: I NEED HELP!!! Pin
Christian Graus3-May-02 18:19
protectorChristian Graus3-May-02 18:19 
GeneralThe escape sequence in HTML. Pin
Maxwell Chen3-May-02 22:26
Maxwell Chen3-May-02 22:26 
GeneralDDEML Pin
Valeria2-May-02 8:08
Valeria2-May-02 8:08 
GeneralRe: DDEML Pin
Tim Smith2-May-02 8:19
Tim Smith2-May-02 8:19 
GeneralRe: DDEML Pin
Valeria2-May-02 9:34
Valeria2-May-02 9:34 
QuestionHow do you load a bitmap? Pin
atomicluis2-May-02 7:58
atomicluis2-May-02 7:58 
AnswerRe: How do you load a bitmap? Pin
Philip Patrick2-May-02 10:20
professionalPhilip Patrick2-May-02 10:20 
GeneralStupid Task List.... Pin
nw603122-May-02 7:10
nw603122-May-02 7:10 
GeneralRe: Stupid Task List.... Pin
Tom Archer2-May-02 7:57
Tom Archer2-May-02 7:57 
GeneralFTP And sockets Pin
Aaron Schaefer2-May-02 5:52
Aaron Schaefer2-May-02 5:52 
GeneralBuilding C++ Application Pin
Stew2-May-02 5:48
Stew2-May-02 5:48 
GeneralRe: Building C++ Application Pin
Anders Molin2-May-02 8:40
professionalAnders Molin2-May-02 8:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.