- 博客(5)
- 资源 (11)
- 收藏
- 关注
原创 HDU 3518 Boring counting 的C++解法
#include #include #include using namespace std;bool is_sub_valid(const string &str, const string &sub){ size_t pos = 0; size_t next = 0; size_t sub_len = sub.length(); int cnt = 0; while (t
2016-09-12 17:32:16
361
原创 python解析torrent文件库:pytorrent
pytorrent是一个非常小巧的用来解析解析torrent文件python库。核心代码不足150行,却能够完备地解析torrent文件,并支持导出修改后的torrent文件。使用演示:import pytorrentt=pytorrent.Torrent()t.load("test.torrent") #your torrent fileprint t.data["info"][
2016-08-23 21:18:08
5523
1
原创 你可能不知道的C++语法:文本操作符
#include #include using namespace std;const string operator ""_sheep(unsigned long long val){ return to_string(val).append(" sheep");}int main() { cout << 1024_sheep << endl;}就是这样,1024_sh
2016-07-11 12:20:57
438
原创 [c++新手学习]windows下如何使用c++播放mp3
毫无疑问,c++本身无法播放声音。在windows下可以借助mci(媒体控制接口)播放MP3资源,并且很好的控制播放对象。如果你是C++新人,想写一个控制台下播放mp3的小程序,那么本文完全适合你。调用mci一般要借助mciSendString函数,使用该函数需要包含头文件mmsystem.h 然而这样一来就会依赖整个mfc框架,导致普通的控制台程序根本无法编译(其实是链接不过去)。所以我在下
2016-02-26 18:45:43
15175
9
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人