2016年11月23日
摘要:
/*回顾一下数学公式: 两点的坐标是(x1, y1)和(x2, y2) 则两点之间的距离公式为 d=√[(x1-x2)²+(y1-y2)²] 注意特例: 当x1=x2时 两点间距离为|y1-y2| 当y1=y2时 两点间距离为|x1-x2| 中点坐标:midpoint(X,Y) X=(X1+X2)/
阅读全文
posted @ 2016-11-23 17:24
Heavy_dream
阅读(6514)
推荐(0)
摘要:
//求最大公约数public class Parent { public int f(int a,int b){ if(a<b){//辗转相除是用大的除以小的。如果a<b,第一次相当a与b值交换 int temp=a; a=b; b=temp; } while(a%b!=0){ int temp=a
阅读全文
posted @ 2016-11-23 14:55
Heavy_dream
阅读(1111)
推荐(0)
2016年11月22日
摘要:
using System.Configuration;using System.Data.OleDb;using System.Data; public partial class datafilm : System.Web.UI.Page{ protected void Page_Load(obj
阅读全文
posted @ 2016-11-22 22:49
Heavy_dream
阅读(429)
推荐(0)
2016年11月20日
摘要:
配置路由端口的ip地址与打开(省略) 配置路由协议 router eigrp 100 network 211.1.1.0(网络号) 0.0.0.255(通配子掩) network 192.168.1.0 0.0.0.255 接下来NAT的配置 int+端口(出去) ip nat outside in
阅读全文
posted @ 2016-11-20 15:27
Heavy_dream
阅读(966)
推荐(0)
摘要:
(3)配置路由: 在全局模式下进去端口配置模式:int f0/0 打开端口:no shut down 进入子接口:int f0/0.1 配置子接口的IP地址:ip address 192.168.100.1 255.255.255.0 封装协议:enca dot1Q +vlan 编号 相同的方法配置
阅读全文
posted @ 2016-11-20 10:42
Heavy_dream
阅读(379)
推荐(0)
2016年11月7日
摘要:
#include "stdafx.h"#include <iostream>using namespace std; void GreedySelector1(int n, int s[], int f[]){ int j = 0; cout << 1 << endl; for (int i = 1
阅读全文
posted @ 2016-11-07 21:12
Heavy_dream
阅读(2361)
推荐(0)
2016年11月3日
摘要:
(1)在配置文件中加上以下代码: <connectionStrings> <add name="accessconn" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\film.mdb;"/
阅读全文
posted @ 2016-11-03 17:31
Heavy_dream
阅读(1943)
推荐(0)
2016年10月30日
摘要:
package com.chigoe;//房子类class House { private int m;// 保存行数 private int n;// 保存列数 private int[][] a; public House() { // 无参构造方法 m = 10; n = 10; for (i
阅读全文
posted @ 2016-10-30 18:35
Heavy_dream
阅读(373)
推荐(0)
摘要:
import java.util.Scanner; public class Calendar { public static void main(String[] args) { // 万年历 int year;// 保存输入的年 int month;// 保存输入的月 System.out.pr
阅读全文
posted @ 2016-10-30 16:03
Heavy_dream
阅读(288)
推荐(0)
2016年10月24日
摘要:
连接access2003 字符串 下面给出个例子:看明白的扣1。 1、先演示下连接SQL数据库的: using System.Data.SqlClient;//sqlserver数据库命名空间 string connstr = "Data Source=localhost;Initial Catal
阅读全文
posted @ 2016-10-24 22:58
Heavy_dream
阅读(2290)
推荐(0)