Recent content by richworldinc

  1. richworldinc

    Comp Sci Search an array in three subsections for a specified song

    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
  2. richworldinc

    Comp Sci Search an array in three subsections for a specified song

    #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 =...
  3. richworldinc

    Comp Sci Search an array in three subsections for a specified song

    #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 =...
  4. richworldinc

    Comp Sci Search an array in three subsections for a specified song

    #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...
  5. richworldinc

    Comp Sci C++ search algorithm with 3 sublists

    I seem to be getting an error of songIndex saying it is not initialized yet I have checked the code to make sure it is the same multiple times
Back
Top