码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
C# 控制台程序 托盘图标 事件响应
static void Main(string[] args) { NotifyIconHelper ni = new NotifyIconHelper(); NotifyIconHelper.ShowNotifyIcon(); ...
分类:Windows程序   时间:2015-06-06 17:49:56    阅读次数:210
silverlight RIA Service的增删改查求助
做silverlight的查询(初始化数据,用的是RIA Service)时的代码:ThisDomainContext users = new ThisDomainContext();public void LoadData() { EntityQuery query = from t in use...
分类:Web程序   时间:2015-06-06 17:48:35    阅读次数:118
OpenGL-glLoadIdentity(转)
函数原型:void glLoadIdentity(void)函数说明: OpenGL为我们提供了一个非常简单的恢复初始坐标系的手段,那就是调用glLoadIdentity()命令。该命令是一个无参的无值函数,其功能是用一个4×4的单位矩阵来替换当前矩阵,实际上就是对当前矩阵进行初始化。也就是说,无论...
分类:其他好文   时间:2015-06-06 16:32:30    阅读次数:116
Cursor 游标
private void printCursor(Cursor cursor) {if(cursor != null && cursor.getCount() > 0) {while(cursor.moveToNext()) {int columnCount = cursor.getColumnCo...
分类:其他好文   时间:2015-06-06 16:21:17    阅读次数:130
顺序查找
顺序查找// 顺序查找.cpp : 定义控制台应用程序的入口点。 //#include "stdafx.h" #include #include void _tmain(int argc, _TCHAR* argv[]) { int data[10] = {75,23,98,44,57,12,29,64,38,82}; int i, input...
分类:其他好文   时间:2015-06-06 15:02:30    阅读次数:116
HDU ACM 1015 Safecracker 暴力DFS
分析:暴搜,复杂度一次最高也才12^5。 #include #include using namespace std; #define N 30 char s[15],ts[10],ans[10]; int tar,index[N]; bool vis[N]; void dfs(int d,int n) { int i,tmp; if(d==5) { tmp=index[ts[0...
分类:其他好文   时间:2015-06-06 15:01:19    阅读次数:91
2015福富福大笔试——实现字符串右移
前两天参加了福富在福大的宣讲会,并且参加了笔试,最后一道大题,这里讲一下当时我的解法,大概的题意是这个样子的,只能使用c的库,实现一个函数void MakeString(char *pStr,int n)(ps:这里的函数名是我现在取的,想不起来考题给的是什么了),函数要求是以'\0'结尾的字符串pStr,一个需要右移的字符个数n,实现类似输入这样MakeString("abcdefghi",2)...
分类:其他好文   时间:2015-06-06 15:00:55    阅读次数:119
活动安排问题
一. 题目描述 设有n个活动的集合E={1,2,…,n},其中每个活动都要求使用同一资源,如演讲会场等,而在同一时间内只有一个活动能使用这一资源。每个活动i都有一个要求使用该资源的起始时间si和一个结束时间fi,且si void GreedySelector(int n, Type s[], Typ...
分类:其他好文   时间:2015-06-06 14:54:28    阅读次数:117
php yield
yield特性一般跟生成器generator紧密联系在一起GeneratorimplementsIterator{/* Methods */publicmixedcurrent(void)publicmixedkey(void)publicvoidnext(void)publicvoidrewind...
分类:Web程序   时间:2015-06-06 14:52:21    阅读次数:4792
二叉树6----一层二叉树的遍历
1、二叉树定义typedef struct BTreeNodeElement_t_ { void *data;} BTreeNodeElement_t;typedef struct BTreeNode_t_ { BTreeNodeElement_t *m_pElemt; struc...
分类:其他好文   时间:2015-06-06 14:52:00    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!