const variable not recognized as array dimension
问题 long AnsiString::pos(const char* plainString) const { const size_t patternLength = strlen(plainString); if (patternLength == 0) return -1; size_t stringLength = count; int partialMatch[patternLength]; // int* partialMatch = new int[patternLength]; KMPBuildPartialMatchTable(plainString, partialMatch); int currentStringCharacter = 0; int currentPatternCharacter = 0; while (currentStringCharacter < stringLength) { if (currentPatternCharacter == -1) { currentStringCharacter++;