#include "stdafx.h"#include #include #pragma
comment(lib,"ws2_32.lib")using namespace std;int main(int argc, char* argv[]){
WSADATA wsaData; int...
1 #include 2 #include 3 #include 4 #include 5
#include 6 #include 7 #include 8 9 #define maxx 1<<2110 using namespace
std;11 12 int mat[22][22],n,dp.....
分类:
其他好文 时间:
2014-05-21 19:00:25
阅读次数:
197
.Net组件程序设计之对象生命周期.NET 垃圾回收IDisposable()Using语句.NET
垃圾回收是CLR管理着垃圾回收器,垃圾回收器监控着托管堆,而我们使用的对象以及系统启动是所需要的一些必备的对象信息都存在于托管堆上,CLR会维护着一个列表(对象引用信息列表).
这个列表里存放的信息...
分类:
Web程序 时间:
2014-05-21 17:43:55
阅读次数:
289
步骤:一、前台JS取HtmlTable数据,根据设定的分隔符把数据拼接起来二、后台先把前台传过来的字符串转换成HtmlTable实体,然后再转换成DataTable实体using
System;using System.Collections.Generic;using System.Text;us...
分类:
Web程序 时间:
2014-05-21 17:25:16
阅读次数:
442
using System;using
System.Runtime.InteropServices;namespace FastReboot{ static class Program {
private delegate uint ZwShutdownSystem(int...
分类:
其他好文 时间:
2014-05-21 17:18:09
阅读次数:
391
#include
using namespace std;
class Box//盒子类
{
public:
//定义一个构造函数用于初始化对象数组
Box(int h, int w, int l);
int volume();//计算盒子的体积
private:
int height;//盒子的高
int width;//盒子的宽
int length;//盒子的长
};
...
分类:
其他好文 时间:
2014-05-21 17:09:16
阅读次数:
212
一次AC
二维树状数组,有模版很好办
注意二维树状数组这个下标是[1][1]的
#include
#include
#include
#include
#include
#include
using namespace std;
const int Max = 1030;
int row, col, ar[Max][Max];
// 二维的其实下标为[1][1],这个要记得。
...
分类:
其他好文 时间:
2014-05-21 16:23:34
阅读次数:
271
#include
#include
using namespace std;
class Point
{
public:
Point(double a,double b):x(a),y(b) {}
double getx()
{
return x;
}
double gety()
{
...
分类:
其他好文 时间:
2014-05-21 14:44:07
阅读次数:
281
构造函数:构造函数是一种特殊的成员函数
构造函数的特点:
1 构造函数的函数名和类名相同
2 构造函数没有返回值
3 构造函数用于初始化对象
通过一个实例说明构造函数的作用
#include
using namespace std;
class Time//时间类
{
public:
void set_time();//设置时间
void show_time();//...
分类:
其他好文 时间:
2014-05-21 14:38:17
阅读次数:
263
using UnityEngine;using System.Collections;public
class wht : MonoBehaviour { static wht myInstance; public int x = 0; static int
instances =...
分类:
其他好文 时间:
2014-05-21 11:51:43
阅读次数:
207