String Comparasin

This is a discussion on String Comparasin within the C++ Programming forums, part of the General Programming Boards category; Okay, I made a Name That Tune game, but the problem is not everybody knows the EXACT title and the ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    73

    String Comparasin

    Okay, I made a Name That Tune game, but the problem is not everybody knows the EXACT title and the EXACT artist. I have considered making four choices, but that makes the game too easy and a lot more work for me.

    My Question: Does anyone know of a function that will compare two *CHAR s and return something like a percent of how closely matched the two strings are? Or else does anyone have any suggestions of what I could do instead?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,499
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 04-25-2008, 02:45 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  3. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 10:06 PM
  4. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 02:23 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM

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