码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
MVC路由约束
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapR...
分类:Web程序   时间:2014-09-26 12:59:48    阅读次数:183
虚函数和纯虚函数的区别
定义纯虚函数是为了实现一个接口,起到一个规范的作用,规范继承这个类的程序员必须实现这个函数。在基类中实现纯虚函数的方法是在函数原型后加“=0” virtual void funtion1()=0在很多情况下,基类本身生成对象是不合情理的。例如,动物作为一个基类可以派生出老虎、孔雀等子类,但动物本身生...
分类:其他好文   时间:2014-09-26 11:52:48    阅读次数:134
链表反向输出
struct ListNode { int m_nKey; ListNode *m_pNext;};void printListReversingly(ListNode *pHead) { stack nodes; ListNode *pNode = pHead; while (pNode != N...
分类:其他好文   时间:2014-09-26 11:42:08    阅读次数:162
C语言指针——指针和数组
先看一个常用的例子: #include int main(void) {     int a[3] = {1,2,3};     int *p = a;     printf("%d ", p[0]);     return 0; }     这段代码编译和运行都没有任何问题,程序会打印出1这个值,但是为什么可以这样用呢?p明明是一个int类型的指针,这里怎么可以使用p[0]这...
分类:编程语言   时间:2014-09-26 11:14:08    阅读次数:193
字符设备驱动
Scull的设计 主设备号和次设备号 设备编号的内部表达 分配和释放设备号 动态分配主设备号 一些重要的数据结构 三个file_operations,file,inode 文件操作 file结构 inode结构 read和write unsigned long copy_to_user(void __user *to,const void *from,...
分类:其他好文   时间:2014-09-26 11:01:41    阅读次数:187
C#的new操作符到底做了什么
使用new操作符来创建对象,其背后到底发生了什么? 有一个父类Animal,Dog派生于Animal。 class Program { static void Main(string[] args) { Dog dog = new Dog(); Console.WriteLine("我能调用老祖宗O...
分类:其他好文   时间:2014-09-26 10:52:48    阅读次数:245
poi操作excel设置数据有效性
private void setDataValidationList(short firstRow,short endRow,short firstCol, short endCol,String data,HSSFSheet sheet ){ //设置下拉列表的内容 ...
分类:其他好文   时间:2014-09-26 10:21:48    阅读次数:324
C++中的友元函数和友元类
#include using namespace std; class myClass1 { public :   myClass1():n(0){};   void setn(int tmpn){this->n=tmpn;}   void show(){cout private:     //友元类     friend class myClass2; ...
分类:编程语言   时间:2014-09-26 06:29:38    阅读次数:208
ExtAspNet从DataTable里导出Excel
[csharp] view plaincopyprint? protected void btn_ToExcel_Click(object sender, EventArgs e)      {          Response.ClearContent();          Response.AddHeader("content-disposition", "attac...
分类:Web程序   时间:2014-09-26 06:29:18    阅读次数:260
根据时间段和周几查询包含的周几对应的日期
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace weekDemo{ class Program { static void Main(st...
分类:其他好文   时间:2014-09-26 02:38:18    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!