-
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?
-
you don't need C++ for that.
-
if it's for your radio then php is probably best for that isn't it?
-
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";
?>