第七章 代理(1)一、代理要声明二、代理使用步骤声明代理初始化代理(使用 实例的方法名
作为参数)使用代理代码示例:/*C7.1.2*/using System;using System.Collections.Generic;using
System.Linq;using System.Text;...
分类:
其他好文 时间:
2014-05-09 10:03:41
阅读次数:
449
/*
* uva575
* Date:2014/5/7
* State: AC
*/
#include
#include
#include
#include
#include
using namespace std;
const int MAXN=34;
char Arr[MAXN];
int main()
{
//cout << "Hello world!" << end...
分类:
其他好文 时间:
2014-05-09 02:25:56
阅读次数:
269
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
测试程序:
#include
#include
struct dev
{
int a;
char b;
float c;
};
struct dev devs[]=
{
{
1,'a',7.0,
},
{
1,'a',7.0,
},
{
...
分类:
系统相关 时间:
2014-05-09 02:10:16
阅读次数:
494
chapter 8 内核代码
8.1.1中断处理程序
traps.c
#define get_seg_byte(seg,addr) ({ \ //取seg中addr处1byte
register char __res; __asm__("push %%fs;mov %%ax,%%fs;movb %%fs:%2,%%al;pop %%fs" ...
分类:
系统相关 时间:
2014-05-09 01:48:26
阅读次数:
418
#include
#include
#define FALSE 0 //函数执行错误返回0
#define TRUE 1 //函数执行正确返回1
//串的堆分配存储表示
typedef struct
{
char *ch;
int length;
}String;
//对串的所有操作都可以通过以下五个基本函数实现
void StrInit(String *);//串的初始化...
分类:
其他好文 时间:
2014-05-09 01:25:02
阅读次数:
294
经过近阶段sublime text 3的使用,对这款编辑器越来越喜欢,无论是外观还是功能,都已做到了编辑器中的顶级。如果你不是 emacs 和 vim 的死忠,那么这款编辑器你绝对不应该错过。虽说这是一款收费软件,listen有70$,但是未注册版也没有任何功能限制,只会在你 save 一定次数后弹出一次购买提示,按Esc即消失,真是业界良心。大家一定要多支持正版。这里推荐大家使用portable version,打好插件,设好配置,就可以压缩打包存储到网盘或U盘中,随时随地使用。我打了10多个插件后,其大...
分类:
其他好文 时间:
2014-05-09 00:22:51
阅读次数:
413
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON
GOCREATE PROCEDURE [dbo].[UP_GetRecordByPage] @tblName varchar(255), -- 表名
@fldName varchar(255),...
分类:
其他好文 时间:
2014-05-08 23:36:12
阅读次数:
409
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Net;using System.IO;using
System.Runtime.InteropService...
分类:
Web程序 时间:
2014-05-08 23:12:06
阅读次数:
622
格式化源码是很常见的需求,emacs有个indent-region函数用于格式化选定的代码,前提是你处在某个非text
mode下,如c-mode或者java-mode之类。如果要格式化整个文件,你需要先选定整个文件(C-x-h),然后调用indent- region(或者
C-M-\ )。两个命....
分类:
其他好文 时间:
2014-05-08 23:11:40
阅读次数:
395