码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
c++ c# java 调用 c++ 写的dll
1. vs 中新建win32 dll 项目 testdll添加实现文件 test.cpp#include "stdafx.h" #include using namespace std;int Add(int plus1, int plus2){ int add_result = plus1 ...
分类:编程语言   时间:2014-05-19 10:25:52    阅读次数:309
POJ 2828 Buy Tickets(神题!线段树or树状数组)
题目链接:POJ 2828 Buy Tickets【题意】给了你 n(1 7 #include 8 #include 9 using namespace std;10 const int MAX = 200005;11 12 int pos[MAX], val[MAX], ans[MAX];13.....
分类:其他好文   时间:2014-05-19 10:10:34    阅读次数:282
HDU 2795 Billboard(线段树)
题目链接:HDU 2795 Billboard【题意】给你一张h*w(1 7 #include 8 #include 9 using namespace std;10 const int MAX = 200005;11 12 int tree[MAX= val)26 {27 ...
分类:其他好文   时间:2014-05-19 10:09:17    阅读次数:419
WinForm多线程+委托防止界面卡死
1、当有大量数据需要计算、显示在界面或者调用sleep函数时,容易导致界面卡死,可以采用多线程加委托的方法解决using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;usi...
分类:编程语言   时间:2014-05-19 09:47:53    阅读次数:340
Codeforces Round #246 (Div. 2) A. Choosing Teams
给定n k以及n个人已参加的比赛数,让你判断最少还能参加k次比赛的队伍数,每对3人,每个人最多参加5次比赛#include using namespace std;int main(){ int n,k, cnt = 0; cin >> n >> k; for(int i = 0 ...
分类:其他好文   时间:2014-05-19 08:40:56    阅读次数:239
AC自动机
hdu2222 字符串多模匹配算法 采用kuangbin模板#include #include #include #include #include using namespace std;struct Trie{ int next[500010][26],fail[500010],end[5...
分类:其他好文   时间:2014-05-19 08:36:17    阅读次数:234
关于继承扩展ASP.NET控件(以Textbox为例)
以下是一个相对简陋的扩展, 主要是针对金额显示的Textbox扩展.using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI.WebControls;usi...
分类:Web程序   时间:2014-05-19 07:34:53    阅读次数:426
取某一个节点下的所有子节点
using System.Xml;using System.Xml.Linq;XmlDocument document = new XmlDocument();document.Load("SessionDef.xml");XmlNodeList nodelist = document.Select...
分类:其他好文   时间:2014-05-19 07:10:10    阅读次数:227
C#访问配置文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using System.IO;namespace Hello...
分类:其他好文   时间:2014-05-18 20:16:27    阅读次数:309
windows系统调用 进程快照
1 #include "windows.h" 2 #include "tlhelp32.h" 3 #include "iostream" 4 using namespace std; 5 6 #pragma comment(lib,"kernel32.lib") 7 8 DWORD GetKe...
分类:Windows程序   时间:2014-05-18 20:01:58    阅读次数:535
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!