2022-11-21 13:15:56 +00:00
|
|
|
#ifndef S0028_FIND_THE_INDEX_OF_THE_FIRST_OCCURRENCE_IN_A_STRING_HPP
|
|
|
|
#define S0028_FIND_THE_INDEX_OF_THE_FIRST_OCCURRENCE_IN_A_STRING_HPP
|
2022-11-15 07:58:41 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2022-11-30 10:20:36 +00:00
|
|
|
class S0028 {
|
2022-11-15 07:58:41 +00:00
|
|
|
public:
|
2022-11-30 15:27:41 +00:00
|
|
|
void getNext(int* next, const string& s);
|
2022-11-15 07:58:41 +00:00
|
|
|
int strStr(string haystack, string needle);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|