I am using two int statements
one being int mysearch and the other being int main, both of them have to run to get the user input and compute the answer
I really am completely lost when trying to compute the time algorithm
#include <iostream>
#include <string>
using namespace std;
int mySearch(string songArray[], int arraySize, string songTitle, int songIndex)
{
for (int i = 0; i < arraySize; i++)
{
cout << i << "..." << songArray[i] << endl;
}
int searchBegin = 0;
int searchEnd =...
#include <iostream>
#include <string>
using namespace std;
int mySearch(string songArray[], int arraySize, string songTitle, int songIndex)
{
for (int i = 0; i < arraySize; i++)
{
cout << i << "..." << songArray[i] << endl;
}
int searchBegin = 0;
int searchEnd =...
#include <iostream>
#include <string>
using namespace std;
int mySearch(string songArray[], int arraySize, string songTitle, int songIndex)
{
for (int i = 0; i < arraySize; i++)
{
cout << i << "..." << songArray << endl;
}
int searchBegin = 0;
int searchEnd = 13...