摘要: 回文:正过来和反过来的顺序是相同的就是回文。 比如:122221 #include <iostream> class Solution{ public: bool ishuiwen(int val) { if(val<0 || (val != 0) && (val %10 == 0)) { retu 阅读全文
posted @ 2021-02-26 20:45 strive-sun 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 今天做case的时候遇到一个这样的问题,故记录下来。 Codeproject有类似的案例,不过是使用的MFC模板编译的。 因为我们只需要win32程序,所以就....代码如下: CodeProject: Play GIF using GDI+ 另一个是使用双缓冲实现的,我没尝试:win32双缓冲实现 阅读全文
posted @ 2021-02-26 15:17 strive-sun 阅读(739) 评论(0) 推荐(0) 编辑
摘要: #include <Windows.h> #include <stdio.h> #include <io.h> #include <fcntl.h> #pragma warning(disable:4996) bool ConvertToWideFromUTF8orACP(char* strData 阅读全文
posted @ 2021-02-26 10:47 strive-sun 阅读(154) 评论(0) 推荐(0) 编辑