摘要: -- 判断数据库 city 是否存在,存在则删除drop database if exists city;-- 创建数据库 citycreate database city;-- 切换当前数据库为 cityuse city;create table tb_country( countryid int primary key AUTO_INCREMENT, countryname varchar(30) null);create table tb_city( cityid int primary key AUTO_INCREMENT, cityname varchar(30) null ... 阅读全文
posted @ 2013-06-20 17:59 zhgs_cq 阅读(1699) 评论(0) 推荐(0) 编辑
摘要: 最短路径算法#include<stdio.h>#define N 11#define M 1000000struct node{ int num; //本来序号 int lin; //临时性标记};void main(){ int i,j,t,k,m,test; node l[N+1]; int w[N+1][N+1]={0}; int cnt=0;//统计节点数 int c[N+1]={0}; //存放节点w[1][2]=676;w[1][3]=1813;w[2][4]=842;w[2][5]=511;w[3][5]=695;w[3][6]=811;w[4][7]=110;w[4 阅读全文
posted @ 2013-06-20 12:00 zhgs_cq 阅读(1471) 评论(0) 推荐(0) 编辑