#include
#include
#include
#include
#include
using namespace std;
bool vis[1000];
double x[1000],y[1000];
int n;
int cnt;
struct node{
int u,v;
double dis;
}edge[500000];
int cmp(node a,node...
分类:
其他好文 时间:
2014-08-27 22:01:48
阅读次数:
257
题目如题。题解如题。
由于目标点最多只有4个,先bfs出俩俩最短路(包括起点),再dfs最短路。)0s1A;(当年弱跪杭州之题,现看如此简单)
#include
#include
#include
#include
#include
using namespace std;
struct point
{
int x,y;
int cnt;
};
char a[105][105]...
分类:
其他好文 时间:
2014-08-27 22:00:38
阅读次数:
272
初级8皇后问题,不是真正的8皇后问题,是该问题的初级条件限制:产生不同行,不同列的组合。typedef struct Spoint{ int x; int y; Spoint() { x = -1; y = -1; }};static Spoint point[8];int Queen8(int.....
分类:
其他好文 时间:
2014-08-27 21:44:08
阅读次数:
274
经过这几天我才发现原来我最弱的是数据库,好了现在就来补补吧SQL(Struct Query Language) 结构化查询语言,属于第四代语言(接近于自然语言)符合主谓宾定状补DDL (Data Define L)数据定义语言,创建一个数据库,创建一个表DML(Data Manage L)数据管理语...
分类:
数据库 时间:
2014-08-27 20:09:48
阅读次数:
240
/*
tle十几次,最后发现当i从1开始时,给环赋值时要注意啊!
最小树形图
*/
#include
#include
#include
#define N 110
#define inf 0x3fffffff
#define eps 1e-10
struct node {
int u,v;
double w;
}edge[N*N*2];
double distance (double x,do...
分类:
其他好文 时间:
2014-08-27 18:52:24
阅读次数:
307
利用结构体可以实现我们手动输入一些学生信息,进行自动排序打印的小程序;首先在Main函数外面定义一个名字为student的结构体,下面没一个同学的信息存储都需要用到student结构体。struct student { public int no; public string name; publi...
分类:
其他好文 时间:
2014-08-27 18:15:58
阅读次数:
191
CLR支持两种类型:值类型和引用类型。值类型包括C#的基本类型(用关键字int、char、float等来声明),结构(用struct关键字声明的类型),枚举(用enum关键字声明的类型);而引用类型包括类(用class关键字声明的类型)和委托(用delegate关键字声明的特殊类)等。C#中的每一种...
分类:
其他好文 时间:
2014-08-27 18:07:38
阅读次数:
159
根据前面的MBR中包含的4个分区表中的一个分区表的信息,对应的结构体为:
struct MBRpartition {
unsigned char boot_ind; /* 0x80 - active */
unsigned char head; /* starting head */
unsigned char sector;...
分类:
其他好文 时间:
2014-08-27 16:44:38
阅读次数:
241
直接看例子:#include#includeusing namespace std;struct Base{ int ba; int bb; void printB(){ coutb.ba = 12; a->b.bb = 34; a->aa = 65; ...
分类:
移动开发 时间:
2014-08-27 15:58:08
阅读次数:
177
头文件
/**
* 书本:【ThinkingInC++】
* 功能:带有构造函数和析构函数的Stack
* 时间:2014年8月27日11:13:10
* 作者:cutter_point
*/
#ifndef STACK3_H_INCLUDED
#define STACK3_H_INCLUDED
class Stack
{
struct Link
{
void*...
分类:
编程语言 时间:
2014-08-27 13:05:48
阅读次数:
245