Recent content by 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- richworldinc
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
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 =...- richworldinc
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
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 =...- richworldinc
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
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...- richworldinc
- Thread
- Array Search
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help
-
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- richworldinc
- Post #17
- Forum: Engineering and Comp Sci Homework Help