// Returns true if the string s is contained // within the array A of length N. Returns // false otherwise bool contains(string *A, int N, string s) { for(int i = 0; i < N; i++) if (A[i] == s) return true; return false; }