github地址:[https://github.com/curl/curl.git](https://github.com/curl/curl.git) 1. 打开源码中curl/winbuild/MakefileBuild.vc文件 2. 在下面三处末尾增加:/D_USING_V110_SDK71_ - 修改:CFLAGS = /I. /I../lib /I../include /nologo /W3 /GX /DWI...
gtk窗口拖动(迁移2010-12-31)
实现按下鼠标左键拖动窗口 --- 1. 加入事件: gtk_widget_add_events(window, GDK_BUTTON_PRESS_MASK); 2. 关联信号与button按下的事件: g_signal_connect(G_OBJECT(window), "button-press-event", G_CALLBACK(window_drag), NULL); 3. 窗口拖动事件的...
拷贝构造与赋值操作(string实例)(迁移2010-12-28)
拷贝构造和赋值这两个操作总是被成对地声明并且兼容,为什么要自定义这两个操作呢?看下面的例子。 // MyString.cpp : 定义控制台应用程序的入口点。 // include "stdafx.h" include <stdio.h> include <string.h> class MyString { public: MyString(const cha...
宽字符函数与普通C函数(迁移2010-12-28)
宽字符函数 普通C函数 普通C函数 ------------- ------------- ----- iswalnum isalnum 测试字符是否为数字或字母 iswalpha isalpha 测试字符是否是字母 iswcntrl iscntrl 测试字符是否是控制符 iswdigit isdi...
const_cast、static_cast、reinterpret_cast、dynamic_cast(迁移2010-12-27)
C++语言中这几种转型相信大家并不陌生但是很容易混淆,下面来看下区别和用法。 const_cast const Person getEmployee() { ... } Person anEmployee = const_cast<Person >(getEmployee()); > 使用const_cast来剥除getEmployee返回类型中的const修饰符。 sta...
今天开始决定写博客(迁移2010-12-26)
其实很早就想写博客了,可是由于种种原因和人天生的惰性最终都没有写成。 参加工作已经半年了, 今天开始决定写博客记录下今后的工作学习历程, 希望几年甚至若干年后再看到这些文章时能会回想起当初的心情和状况, 现在用我喜欢的一位诗人(汪国真)的诗与大家一起共勉 。 ...
给一组标签设置状态
如下一组标签,当鼠标点击后设置active状态,再次点击取消active状态 <div class="field required"> <label class="required">标签</label> <a class="ui teal tag label">Windows</a> <a class="ui red tag label">Linux</a> ...
android app 笑话
使用react native开发的,通过showapi获取笑话内容,包括文本消息,趣图,动态图。 [github地址](https://github.com/tujiaw/react_native_joke) [apk下载地址](http://pan.baidu.com/s/1nvBDF7b) 代码就不上了直接去[github](https://github.com/tujiaw/react_native_...
android app 微信热门文章精选
试用一下react native做了这个小软件,文章内容是用showapi获取的, 如果你喜欢或者对你有帮助给个star吧([github地址](https://github.com/tujiaw/react_native_wxarticle) [apk下载地址](http://pan.baidu.com/s/1i4XQkWd))。 index.android.js --- 1. render...
mongoose分页查询
PAGE_COUNT:每个页面的item数 page:当前页面标号 schema.find(query) .skip(PAGE_COUNT (page - 1)) .limit(PAGE_COUNT) .sort({ _id: -1 }) .exec(); ...
DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated
去掉这个警告的方法: --- var mongoose = require('mongoose'); mongoose.Promise = global.Promise; ...
mmbiz.qpic.cn图片防盗链
> 先来了解一下什么是防盗链系统吧,只想知道解决方法的可以跳过直接看底部。 什么是防盗链系统 --- 在确保地址正确的情况下,不能下载相应的资源,均是受到防盗链系统的影响,那么究竟什么是防盗链系统呢?防盗链自然就是防范盗链,所以这里先说一下什么是盗链。 ...