- 博客(11)
- 资源 (2)
- 收藏
- 关注
原创 cximage mix 注意图像合成时内部坐标
double h1,w1,h2,w2,h3,w3,h4,w4,bpp; //getheight(w4,h4); CString spath1 = _T("测试1"); CString spath2 = _T("测试2"); CString spath3 = _T("测试3"); CStringArray arraystr; arraystr.Add(spath1);arraystr.Add(spath2);arraystr.Add(spath3); ...
2021-03-02 13:18:46
416
原创 cef OnBeforePopup禁止弹出新窗体
bool SimpleHandler::OnBeforePopup( CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, const CefString& target_url, const CefString& target_frame_name, WindowOpenDi...
2020-01-03 23:20:10
3358
转载 网站地图爬虫
def crawl_sitemap(url): html = '' #download the sitemap file sitemap = download_page(url, 2) # extract the sitemap links links = re.findall('(.*?)',sitemap) #load each link
2017-01-14 22:16:30
848
转载 downLoad
下载:避免网页错误;错误码 5xx; 代理def download_page(url, num_retries = 2, proxy=None, referer=None): page_buf = '' print 'downloading:', url try: # set http proxy if proxy:
2017-01-14 22:10:45
526
原创 python builtwith
import builtwithres = builtwith.parse('https://zhidao.baidu.com/question/2073804096754701028.html')print resoutput: {u'javascript-frameworks': [u'RequireJS', u'jQuery', u'RightJS'], u'web-serv
2017-01-14 15:28:24
547
转载 值得推荐的C/C++框架和库(深度好文)
【本文系外部转贴,原文地址:http://www.cppblog.com/merlinfang/archive/2014/12/26/209311.html http://coolshell.info/c/c++/2014/12/13/c-open-project.htm】留作存档公交车上看到的好文,忍不住转发!下次造轮子前先看看现有的轮子吧--值得学习的C语言开源
2017-01-11 09:47:49
731
原创 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700'
You are trying to link objects compiled by different versions of the compiler. That's not supported in modern versions of VS, at least not if you are using the C++ standard library. Different versions
2016-12-06 13:54:03
2758
转载 插入排序
算法实现:public void insertSort(int[] list) { // 第1个数肯定是有序的,从第2个数开始遍历,依次插入有序序列 for (int i = 1; i < list.length; i++) { int j = 0; int temp = list[i]; // 取出第i个数,和前i-1个数比较后
2016-10-05 23:42:19
259
转载 找出两个字符串中最大的公共子串的简单实现
分析:Short =abcdeLong =123456Abcde Abcde AbcdBcde AbcBcdCde AbBcCdDe ABCDE缺点:只能选择一个最大的子字符串 char * common_sub( char * str1, char *str2){ assert((str2 != NULL) && (str1 != NULL)); char * shortstr =
2016-10-05 15:26:51
531
转载 CtreeCtl check
转载http://www.cnblogs.com/lujin49/p/4573616.html对进行了修改void CTestTimerDlg::SetParentCheck(HTREEITEM hTree,BOOL bCheck){ HTREEITEM hParent = m_TreeCtrl.GetParentItem(hTree); if (hPare
2016-08-12 11:15:45
371
原创 10038
sendto 返回-1,错误10038;解决办法:http://stackoverflow.com/questions/14289998/connect-function-fails-wsagetlasterror-10038if ((sa = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) == INVALID_SOCKET))与
2016-08-06 15:03:43
901
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人