Click here to Skip to main content
15,908,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
You need to check 'Display this message as-s (no HTML)' below if you're going to have #includes in < and >.

Donna wrote:
gameNbr[j]=(1 + rand() % 6);

This line is going to generate numbers between 1 and 6. Is this what you want ? Also, I see no checking for duplicates.

I also don't get how your linear search works. I think you want to step through your numbers, and call linear search on each of them, and count how many you find. As it stands, I don't see how it could work.

I also don't see a using statement anywhere - you're not including iostream.h, are you ? You need to include iostream instead, which means you need a using statement for namespace std or, preferably, for each element you use, in this case only cin and cout.



Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
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 
GeneralString to valid XML tag Pin
Braulio Dez2-May-02 5:37
Braulio Dez2-May-02 5:37 
GeneralRe: String to valid XML tag Pin
Niklas L2-May-02 5:53
Niklas L2-May-02 5:53 
GeneralRe: String to valid XML tag Pin
Braulio Dez2-May-02 6:06
Braulio Dez2-May-02 6:06 

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.