C++
moon_rern
这个作者很懒,什么都没留下…
展开
-
Kmp算法(C++)
#include <iostream>using namespace std;void GetNext(string StrModel, int* next){ int i = 1, j = 0, n = StrModel.length(); next[0] = 0; while (i < n) { if (StrMod...原创 2020-02-15 19:57:47 · 235 阅读 · 0 评论 -
delphi&C++ 将纹理保存到bmpwe
Delphifunction GetRed(color: Word): Byte;begin Result := (color shr 8) and $ff;end;function GetGreen(color: Word): Byte;begin Result := (color shr 3) and $ff;end;function GetBlue(color: ...原创 2019-11-16 19:54:11 · 226 阅读 · 0 评论