Help with math flashcards

This is a discussion on Help with math flashcards within the C++ Programming forums, part of the General Programming Boards category; Hello all, I had an assignment to develop a math flashcard program which I completed. I wanted to add random ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    9

    Help with math flashcards

    Hello all, I had an assignment to develop a math flashcard program which I completed. I wanted to add random questions and cannot seem to get this portion to work. Should be something simple wrong, any help would be appreciated.

    Sorry, Upon selecting Random Mix option I get a verification of selection then goes directly to results.

    Thanks for the help I am new to this 2 weeks int class.
    Attached Files Attached Files
    Last edited by Alecroy; 09-24-2010 at 01:56 PM.

  2. #2
    Bored Programmer
    Join Date
    Jul 2009
    Location
    Tomball, TX
    Posts
    407
    Can you explain whats not working? What happens when you run the program?

  3. #3
    Registered User
    Join Date
    Sep 2010
    Location
    Halesowen, England
    Posts
    30
    Which part isn't working, as this will give us a clue where to start looking for a problem?

    I have noticed, however, at a quick glance, that in the ConductQuizSelection() function, you are calling the other question functions, but don't have a call to RandomQuestion()

  4. #4
    Bored Programmer
    Join Date
    Jul 2009
    Location
    Tomball, TX
    Posts
    407
    Aha you caught it. RandomQuestion isn't ever called as far as I can tell other than its declaration and its definition. Good eye JamDog. The parts that are called still call for random numbers within their questions, but it seems the questions aren't randomly generated during this part... I may have missed something though.
    Last edited by Lesshardtofind; 09-24-2010 at 01:43 PM.

  5. #5
    Registered User
    Join Date
    Sep 2010
    Posts
    9

    Thank you

    Thanks all, I looked at this for hours and couldn't see what I was missing. This fixed it...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Doing aweful in math, but decent in CS?
    By psychopath in forum General Discussions
    Replies: 2
    Last Post: 11-04-2009, 08:49 AM
  2. Help with C++ Math
    By aonic in forum C++ Programming
    Replies: 4
    Last Post: 01-29-2005, 03:40 AM
  3. Basic Math Problem. Undefined Math Functions
    By gsoft in forum C Programming
    Replies: 1
    Last Post: 12-28-2004, 02:14 AM
  4. Math Header?
    By Rune Hunter in forum C++ Programming
    Replies: 26
    Last Post: 09-17-2004, 06:39 AM
  5. toughest math course
    By axon in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-28-2003, 09:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21