User Profile

Collapse

Profile Sidebar

Collapse
mariiikar
mariiikar
Last Activity: May 2 '07, 09:52 AM
Joined: Feb 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
    #include <iostream>
    #define MAX 6
    #define LOT 7
    using namespace std;
    
    int main()
    {
        int number[MAX];
        int index,temp;
        int winnumbers[LOT];
        int match=0;
        
    //gather data and put it in array    
        for (index=0;index<MAX;index++)
        {
            cout<<"Please enter the six winning lotto numbers--->
    ...
    See more | Go to post

    Leave a comment:


  • The six winning lotto numbers aren't going to change, so let's say they are 7, 4, 16, 21, 35, 33. They will stay the same. I don't want to generate winning lotto numbers or anything like that. But I want to type in 7 numbers to be checked against these numbers. I want the program to be able to count how many numbers match. I don't know how to compare two arrays simply. I've read about 'bool' and all this but I only want to use the iostream class...
    See more | Go to post

    Leave a comment:


  • Well if the numbers 1 0 0 0 0 0 were the six winning numbers and 9 9 9 9 9 1 was the numbers on the ticket i would want the 1 to be counted.

    The Six winning numbers I just want stored in an array or something. I want to be able to type 7 numbers to be checked including the bonus number. But is there a way for the bonus number to be kinda separate or something?? thanx....
    See more | Go to post

    Leave a comment:


  • Lotto Numbers - Check how many matches there are. Please Help..

    K. I'm kinda totally lost on how to go about this....

    Here's the Question:
    ------------------------------
    Write a program that will store a list of six Lotto numbers and then invites the user to enter the latest set of Lotto numbers, including the Bonus number and checks how many matches there are for that draw.
    ------------------------------

    I don't know how to compare two arrays which is what...
    See more | Go to post
No activity results to display
Show More
Working...