PDA

View Full Version : Coding help with C++



abdellah123
31-07-2010, 05:56 PM
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?

Trigs
31-07-2010, 07:30 PM
you don't need C++ for that.

Stephen
31-07-2010, 07:52 PM
if it's for your radio then php is probably best for that isn't it?

Apolva
01-08-2010, 01:11 AM
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
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";
?>

Want to hide these adverts? Register an account for free!