Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Location
    Canada, ON.
    Posts
    59
    Tokens
    0
    Habbo
    abdellah123

    Latest Awards:

    Default Coding help with C++

    I am currently trying to make a program that would pretty much take data from a radio, the data would be all the played songs and how many times they have been played, and it would transfer it into a top 50 count down.. the order goes by the most played.

    Now my problem is, DJ's don't always have the same name for the songs which causes me a problem.
    Is there a way to recognize a song using a variable between 0 and 10?
    -Contact me if you got questions-
    I am a Metaverse blogger! You can find my blog here.
    Link don't work?
    Use this: http://abdullenroyblog.wordpress.com/

  2. #2
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    you don't need C++ for that.
    Vouches
    [x][x]

  3. #3
    Join Date
    Dec 2006
    Location
    UK
    Posts
    6,444
    Tokens
    6,676

    Latest Awards:

    Default

    if it's for your radio then php is probably best for that isn't it?

  4. #4
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    As others have mentioned, PHP is probably more suitable for this (since you're just compiling a list).

    Have a look into PHP similar_text() function: http://php.net/manual/en/function.similar-text.php

    For example:
    PHP Code:
    <?php
    function similarity($word1,$word2){
         
    // Returns string similarity on a scale of 1-10.
         
    similar_text($word1,$word2,$percentage);
         return 
    round($percentage/10);
    }
    echo 
    similarity("telly","jelly") . "/10";
    ?>
    Last edited by Apolva; 01-08-2010 at 01:16 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •