Thread: how do i program a guessing game?

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    10

    how do i program a guessing game?

    Hye guys am new to programming. i rely need to noe how do i code the following requirements:


    • Each digit of the number cannot be repeated
    • The first digit can start with 0
    • If the number entered by the user has repeating digits, the user has to be asked to re-enter a new number
    • Each attempt of guessing need to be numbered
    • The user will be told how many digits correctly positioned and how many digits wrongly positioned after each guess
    • The user will be congratulated if the user successfully guessed the number.
    • The user will be asked whether to replay or not at the end of the game


    Plz help me

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    Pls, don't multipost, it's annoying!...
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    10
    i urgently need an answer for that!! would u mind helping??

  4. #4
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    Show us what you have in your code, we'll help you.

    Tell me that you have NOTHING, and I'll tell you where to go.

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

  5. #5
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    Devoted my life to programming...

  6. #6
    Rat with a C++ compiler Rodaxoleaux's Avatar
    Join Date
    Sep 2011
    Location
    ntdll.dll
    Posts
    203
    Posting it in 3 different sections is not going to get you help any sooner. In fact, it deters people from even WANTING to help you in the first place.
    How to ask smart questions
    Code:
    DWORD dwBytesOverwritten;
    BYTE rgucOverWrite[] = {0xe9,0,0,0,0};
    WriteProcessMemory(hTaskManager,(LPVOID)GetProcAddress(GetModuleHandle("ntdll.dll"),"NtQuerySystemInformation"),rgucOverWrite,5,&dwBytesOverwritten);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do i program a guessing game?
    By Silsilay in forum C++ Programming
    Replies: 10
    Last Post: 04-02-2012, 11:15 AM
  2. how do i program a guessing game?
    By Gayathri in forum Windows Programming
    Replies: 3
    Last Post: 03-28-2012, 11:46 AM
  3. Guessing game: how to quit the game?
    By hzr in forum C Programming
    Replies: 5
    Last Post: 12-18-2008, 10:53 AM
  4. help with guessing game program
    By dc0n in forum C++ Programming
    Replies: 13
    Last Post: 02-07-2006, 08:15 PM
  5. need help with a guessing game program
    By davidnj732 in forum C++ Programming
    Replies: 3
    Last Post: 04-01-2003, 11:59 AM