码迷,mamicode.com
首页 >  
搜索关键字:namespace 命名空间    ( 47219个结果
数据结构-冒泡排序
#include using namespace std;void BubbleSort(int* a,int n){ for(size_t i=0;i a[j+1]){ int tmp = a[j]; a[j] = a[j+1]; ...
分类:其他好文   时间:2014-05-08 21:59:19    阅读次数:264
JQ插件开发详解
jQuery插件的开发包括两种:一种是类级别的插件开发,即给jQuery添加新的全局函数,相当于给jQuery类本身添加方法。jQuery的全局函数就是属于jQuery命名空间的函数,另一种是对象级别的插件开发,即给jQuery对象添加方法。下面就两种函数的开发做详细的说明。1、类级别的插件开发类级...
分类:其他好文   时间:2014-05-08 21:37:30    阅读次数:503
抓取网页内容并截图
需要调用windows.Forms命名空间,使用一个类库WebPreview1.1.rar_by_Kai.Ma,此处仅记录之。给一个下载链接WebPreview1.1.rar_by_Kai.Ma.rar
分类:Web程序   时间:2014-05-08 21:19:08    阅读次数:307
C# Copy 文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace DirectoryCopy...
分类:其他好文   时间:2014-05-08 20:30:59    阅读次数:381
hdu 1159
题意:求最长子序列#include#includeusing namespace std;int max(int x,int y){ if(x>y) return x; return y;}int map[1001][1001];char s1[1001],s2[1001];int main(){ ...
分类:其他好文   时间:2014-05-07 20:07:29    阅读次数:202
MVC验证13-2个属性至少输入一项
有时候,我们希望2个属性中,至少有一个是必填,比如: using Car.Test.Portal.Extension; namespace Car.Test.Portal.Models { public class Person { public int Id { get; set; } publi...
分类:Web程序   时间:2014-05-07 19:38:45    阅读次数:518
hdu 1176
数塔问题#include#includeusing namespace std;int a[100009][12];int maxi(int a,int b,int c){ int max1; max1=a>b?a:b; max1=max1>c?max1:c; return ...
分类:其他好文   时间:2014-05-07 19:25:00    阅读次数:302
SqlCommand.ExecuteScalar 方法
本文来自:http://msdn.microsoft.com/zh-cn/library/system.data.sqlclient.sqlcommand.executescalar(v=vs.100).aspx执行查询,并返回查询所返回的结果集中第一行的第一列。忽略其他列或行。命名空间:Syste...
分类:数据库   时间:2014-05-07 19:18:11    阅读次数:665
operator++() 和operator++(int)
#include using namespace std;class A{public: int a;public: A& operator++(){ cout<<"A& operator++()"<<endl; a=a+1; return *this; } A operator++(int){ c...
分类:其他好文   时间:2014-05-07 18:37:55    阅读次数:208
C++ Multithread Tutorial
---恢复内容开始---Example 1Creating and terminating thread by usingpthread_create, pthread_exit(status)#include #include #include using namespace std;#defin...
分类:编程语言   时间:2014-05-07 17:41:05    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!