学会思考
刻意练习
摘要: #include <iostream> using namespace std; int main() { cout << "Hello, World!" << endl; char buf[2]; sprintf(buf,"%d",12); cout << buf <<endl; return 0 阅读全文
posted @ 2020-11-20 11:01 Worty 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1. Pattern: Sliding window,滑动窗口类型 滑动窗口类型的题目经常是用来执行数组或是链表上某个区间(窗口)上的操作。比如找最长的全为1的子数组长度。滑动窗口一般从第一个元素开始,一直往右边一个一个元素挪动。当然了,根据题目要求,我们可能有固定窗口大小的情况,也有窗口的大小变化 阅读全文
posted @ 2020-09-30 11:16 Worty 阅读(400) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; 阅读全文
posted @ 2020-09-24 11:08 Worty 阅读(1741) 评论(3) 推荐(0) 编辑
摘要: 1,下载的源码可以直接使用; 注意事项: 1,example下的实例程序可以直接使用,但是需要增加引用项。引用项需要另外生成,比如需要使用example下的Winforms工程,需要到WinFormsView下重新生成dll文件,然后example下的winform引用生成的dll文件(LiveCh 阅读全文
posted @ 2020-09-08 15:57 Worty 阅读(4248) 评论(3) 推荐(0) 编辑
摘要: //循环队列 约定:head = -1且tail=-1时为空 class MyCircularQueue { private: int* elements; int head; int tail; int size; public: /* initialize your data structure 阅读全文
posted @ 2020-04-28 13:26 Worty 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 0,官网下载vscode版本; 1,前提:本地要安装python版本,再安装vscode for python 插件; 2,打开vscode ,ctrl+p,输入ext install python,选择最多的下载项,一般为第一个即可; 3,新建python文件,输入测试的代码,F5编译,一般需要选 阅读全文
posted @ 2020-03-13 09:38 Worty 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 1,如何编译libcurl支持openssl 0,查看下载的libcurl的文档,F:\curl_openssl\curl-7.65.3\winbuild\BUILD.WINDOWS.txt里面有详细的介绍以及编译方法。(看官方文档参照编译才是最正规的方法,遇到问题再去搜索方法解决) 1,编译时需要 阅读全文
posted @ 2020-03-13 09:33 Worty 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 参考: https://blog.csdn.net/m0_37170593/article/details/76445972 解决方案下新建dll以及测试工程: http://www.360doc.com/content/17/0923/15/1489589_689454213.shtml 1,生成 阅读全文
posted @ 2020-03-13 09:22 Worty 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/grandyang/p/10961560.html#include <vector> #include <stdlib.h> #include <ostream> #include <string> using namespace std; /* 阅读全文
posted @ 2020-03-12 17:17 Worty 阅读(156) 评论(0) 推荐(0) 编辑
摘要: /** * references: * https://www.cnblogs.com/grandyang/p/7565424.html * @brief The Solution class * Given an array with n integers, your task is to che 阅读全文
posted @ 2020-03-12 16:29 Worty 阅读(233) 评论(0) 推荐(0) 编辑