/*
Compares two strings together and calculates their similarity
Parameters: first sequence, second sequence
Returns: similarity score for the two sequences
*/
/*
Counts all matches of a sequence in a genome with a minimun score consideration
Parameters: genome, sequence, minScore
Returns: all matches within the min score boundary
*/
int countMatches(string genome, string sequence, float minScore)
{
int matches = 0;
int sequenceLength = sequence.length();
/*
Compares three genomes and returns the index number of the one with the best match for a sequence
Parameters: first genome, second genome, third genome, sequence
Returns: best matching genome for given sequence
*/
The issue I see to be having is after my code completes the first function call to similarityScore it seems to be stuck in that function and does not call the other functions within the main(). Have I called the functions incorrectly within main()?
Or .... if the functions are being called and executed, why do they not display the results?
Any possible help would be greatly appreciated, thank you.
Those kind of errors can be detected early when you develop correctly and look for mistakes within your code.
You have a lot of tutorials on the web to help you do that. It also looks like you can use some programs to help you do that.
I got an advise once to use Checkmarx to detect vulnerabilities in the code, you can try it out.
Good luck.