bool scanSig(string path, int signCount){ InitConsole();

FILE *in1 = fopen(path.c_str(), "rb"); if (!in1) cout

//Convert string vector to int istringstream iss(signBase[wsignCount]); vector results(istream_iterator{iss}, istream_iterator()); reverse(results.begin(), results.end());

vector signInt(results.size()); //cout

for (int i = 0; i

stringstream ss; ss ;

int x; ss >> x;

signInt = x;

}

//unsigned char buf[26000]; unsigned char buf[MAX_PATH]; int z = 0; size_t count; //while (count = fread(buf, sizeof(buf[0]), 26000, in1)) { while (count = fread(buf, sizeof(buf[0]), MAX_PATH, in1)) { int i; for (i = 0; i

if ((int)buf == signInt[0]) {

for (z = 1; z

if (buf[i - z] != signInt[z]) break; }

if (z == resultsSize) {

detectedSignature = signBase[wsignCount];

detectedPath = path;

botFound = true; cout

}

sleepCount++;

if (sleepCount == 3000) {

Sleep(6); sleepCount = 0; }

}

}

}

fclose(in1);

return 0; }Находит только 1 сигнатуру, остальные не находит, помогите подправить код. С меня на пиво =)

7 лет назад
CKREPKA
Шамиль 
30 лет
10 лет в сервисе
Был
3 года назад

Заявки фрилансеров

Нет заявок фрилансеров