//查找目标资源HRSRC hResource = FindResource(GetModuleHandle(NULL), MAKEINTRESOURCE(IDR_MAINPROG), TEXT("exe"));if(hResource){//加载资源HGLOBAL hg = LoadResourc...
分类:
编程语言 时间:
2014-06-23 06:32:42
阅读次数:
409
class Solution {public: int searchInsert(int A[], int n, int target) { if (A == NULL || n target) { q = mi; } els...
分类:
其他好文 时间:
2014-06-23 06:29:20
阅读次数:
169
超链接 /取消超链接插入/取消 书签插入图片粘贴图上CTRL+v截图插入表情GIF //显示图片对话框 webBrowser1.Document.ExecCommand("InsertImage", true, null); // webBrowser1.Document.ExecCommand("...
分类:
其他好文 时间:
2014-06-23 00:15:02
阅读次数:
268
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:
其他好文 时间:
2014-06-22 23:59:58
阅读次数:
244
编写类String 的构造函数、析构函数和赋值函数,已知类String 的原型为:class String{public:String(const char *str = NULL); // 普通构造函数String(const String &other); // 拷贝构造函数~ String(v...
分类:
其他好文 时间:
2014-06-22 23:31:22
阅读次数:
212
大字节序(Big Endian):低地址存高位小字节序(Little Endian):高地址存地位int main(){ int x=1; char *temp = NULL; temp= (char *)&x; if (*temp =...
分类:
其他好文 时间:
2014-06-22 23:23:02
阅读次数:
202
分两块:
1.取得摄像头采集的视频流
2.发送到服务器端
protected MediaRecorder mMediaRecorder;
private LocalServerSocket mLss = null;
private LocalSocket mReceiver, mSender = null;
mLss = new LocalServerSock...
分类:
移动开发 时间:
2014-06-22 00:59:44
阅读次数:
435
ORA-00913错误
描述:PL/SQL: ORA-00913: too many values
目标:编写一个可以循环插入数据的脚本
操作过程:
SQL> desc tcustmer
Name Null? Type
----------------- -------- -------------------------...
分类:
数据库 时间:
2014-06-21 21:40:02
阅读次数:
326
1.&和&&(1).&和&&都可以用作逻辑与的运算符,表示逻辑与(and),当运算符两边的表达式的结果都为true时,整个运算结果才为true.(2).&&还具有短路的功能,即如果第一个表达式为false,则不再计算第二个表达式.例如,对于if(str != null && !str.equals(...
分类:
编程语言 时间:
2014-06-21 16:24:29
阅读次数:
289
SELECT a.id,b.name FROM tab1 AS a LEFT JOIN tab2 AS b ON(a.id = p.id) WHERE a.id > 10以上sql返回的结果中name列也许会出现 null 的情况,那么在name字段上使用什么函数可以将出现的 null 改为一个默认...
分类:
其他好文 时间:
2014-06-21 14:27:50
阅读次数:
194