片种吧里种子怎么提取
答案:2 悬赏:20 手机版
解决时间 2021-04-10 03:24
- 提问者网友:像風在裏
- 2021-04-09 16:50
片种吧里种子怎么提取
最佳答案
- 五星知识达人网友:过活
- 2021-04-09 18:00
哈哈,童鞋,片种吧精品贴的技术指导板块里有教程的,你可以看一下~~~
全部回答
- 1楼网友:雪起风沙痕
- 2021-04-09 19:17
图片和种子是两个截然不同的软件。我只是从其他地方看到jpeg文件编码格式以0xffd8起始,以0xffd9结尾 bt种子嵌入到起始标志之前或者结尾标志之后均可以。 嵌入bt种子代码: #include #include #include using namespace std; char buf[10240]; int main() { char c; cout << "image src file name (jpeg):"; cin >> buf; ifstream fin(buf, ios_base::binary); if (!fin.good()) { cout << "can't open " << buf << endl; } fin.seekg(0, ios_base::end); size_t size = fin.tellg(); fin.seekg(0, ios_base::beg); cout << "image des file name (jpeg):"; cin >> buf; ofstream fout(buf, ios_base::binary); if (!fout.good()) { cout << "can't open " << buf << endl; } cout << "bt link:"; cin >> buf; fout.write(buf, strlen(buf)); c = 0; fout.put(c); for (size_t i = 0; i #include #include using namespace std; char buf[10240]; int main() { char c; cout << "image file name (jpeg):"; cin >> buf; ifstream fin(buf, ios_base::binary); if (!fin.good()) { cout << "can't open " << buf << endl; } fin.seekg(0, ios_base::end); size_t size = fin.tellg(); fin.seekg(0, ios_base::beg); size_t i = 0; while (1) { c = fin.get(); buf[i++] = c; if (c == 0) break; } cout << buf << endl; fin.close(); }
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯