- 博客(26)
- 资源 (14)
- 问答 (1)
- 收藏
- 关注
原创 Div and Span
Div and SpanMost HTML elements are defined as block level elements or as inline elements.Block level elements normally with a new line when displayed in a browser. The HTML Element: function
2013-09-24 08:48:47 774
原创 Html table notes
tables: tag:rows each row is devided into data cells(with tag). td stands for "table data", and holds the content of a data cell. A can contain text, links, images, lists, forms, other tables, e
2013-09-24 08:25:40 647
原创 html image study note
alt attribute:if the picture can't be displayed, this attribute specifies an alternate text for an image.eg:We can also set the height and width of an image.default: in pixels.Loading images tak
2013-09-24 07:51:01 710
原创 All of SQL
1、初入数据库时想查看数据库的列表,使用命令:SHOW DATABASES;2、为了获得数据库内的表的列表,使用SHOW TABLES;3、与SHOW是使用的语句还有很多:SHOW STATUS:用于显示广泛的服务器状态信息。SHOW CREATE DATABASE和SHOW CREATE TABLE分别用来显示创建特定数据库或表的Mysql语句。SHOW GRANTS 显示授予用
2013-09-19 07:14:05 552
原创 ALTER SQL
记住了:每个表中只能有一列可以加上AUTO_INCREMENT,该列必须为整数类型而且不能包含NULL;命令速记:想同时改变列的名称和类型时请用CHANGE;只想改变数据类型时请用MODIFY;DROP COLUMN 的功能是从表中卸除指名的列。使用RENAME改变表的名称。使用FIRST,LAST,BEFORE column_name,AFTER column_name,
2013-09-19 07:13:16 599
原创 Graph operation
// 图的基本操作#include "stdafx.h"#include#define MaxValue INT_MAX // 定义最大值即(无穷大)#define MaxVNum 100 // 定义最大顶点个数using namespace std;// 建立邻接矩阵的结构void ADJMATRIX(int A[][MaxVNu
2013-09-19 07:11:26 703
原创 Haff-man
哈弗曼树相关知识总结:1、概念: 给定一组权值,构造出的具有最小带权路径长度的二叉树称为Huffman树,又称为最优二叉树;2、特性: 权值越大的叶结点离根结点越近,权值越小的叶结点离根结点越远,这样的二叉树的WPL最小;3、哈弗曼算法思想:关键是构造哈弗曼树的方法: (1)将给定的权值按照从小到大排列成(w1,w2,w3,···
2013-09-19 07:10:54 804
原创 Josephoe
#include "StdAfx.h"#include using namespace std;typedef struct Node{Node* next;int iData;}ReNode,*ReLinkList;///////////////////////////////////////////////////////////////////
2013-09-19 07:10:05 478
原创 Create graph
// 对图的邻接矩阵和邻接表表示分别进行深度优先搜索遍历算法的实现。#include "stdafx.h"#include using namespace std;//////////////////////////////////////////////////////////////////////////// 图的实现 邻接矩阵的方法////////////
2013-09-19 07:09:07 2585
原创 Number Conversion
#include "stdafx.h"#include using namespace std;typedef struct Node{int iData;Node* next;}*STLink ;// 数制之间的转换;void Conversion1(int num){int iNumber = 0;cout cin >> iNumbe
2013-09-19 07:07:44 543
原创 Java-1
1. Java-Arrayimport java.util.Scanner;class Array{public static void main(String args[]){int a[]=new int [10];Scanner num=new Scanner(System.in);for(int i=0;i{System.out.print("请输入
2013-09-19 06:59:23 503
原创 Java-2
实验题目终极报告(支持原创)1. 编一程序,求两个正整数m、n的最大公约数。要求程序中有两个方法,分别使用循环和递归,最后在主方法中两次求解并输出最大公约数。提示:用辗转相除法。方法(1) 求m除n的余数r;(2) 如果r为0,则n为最大公约数,结束。否则转(3);(3) 用n置m,用r置n ,回到(1)。 代码://递归方法实现最大公约数import java.util
2013-09-19 06:55:49 707
原创 Java-3
1. 使用编写代码的方式,设计一个用户界面如下图所示://package Number1;import java.awt.*;import javax.swing.*;public class Calculator { public static void main(String[] args) { JFrame frm = new JF
2013-09-19 06:54:30 1255
原创 Assignment 10
1. 数组中的数据经常可以用多种不同的格式显示。当用户向数组输入整数时,则分别用二进制、八进制、十进制和十六进制的格式输出表中的数。编写函数convertBinary来实现将一个数转换为其二进制表示的函数这一功能。程序代码:#includeusingnamespace std;intmain(int argc,char* argv[]){ void conver
2013-09-19 06:48:47 893
原创 Assignment 9
1.将例11.2的程序片断补充和改写成一个完整、正确的程序,用私有继承方式。在程序中应包括输入数据的函数,在程序运行时输入num, name, sex,age, addr的值,程序应输出以上5个数据的值。程序代码:#include #include using namespace std;class Student {public: vo
2013-09-19 06:47:25 1224
原创 Assignment 8
1.分析下面的程序,写出运行结果。#include using namespace std;class Date{public: Date(int,int,int); Date(int,int); Date(int); Date(); void display();private:
2013-09-19 06:46:06 955
原创 Assignment 7
1. 有以下程序:#include using namespace std;class Time {public: int hour; int minute; int sec; };int main() { Time t;cin>>t1.hour; cin>>t1.minute; cin>>t1.sec;cou
2013-09-19 06:44:30 1026
原创 Assignment 6
1. 分析如下程序的结果(数组与指针的关系)#includeusing namespace std;void main(){ char s1[5]={'m', 'n', 'p', 'q','\0'}; char *ps=s1; cout cout cout cout cout}2. 输入3个字符串,按由小到大
2013-09-19 06:42:59 613
原创 Assignment 5
1. 程序一:#include #include #include using namespace std;int main(int argc,char *argv[]){ floata[5][4]; int m = 0,n =0; int aver = 0;
2013-09-19 06:40:36 715
原创 Assignment 4
1. n1+n2+n3+…+n10,其中n=1,2,3,……。程序代码:#includeusing namespace std;int a = 0;int power(int m);int main(){ int i = 0; int p = 0; cout cin >> a;
2013-09-19 06:37:51 636
原创 Assignment 3
(1)编程序,用以确定员工的工资总额。对于员工每周工作的前40小时,公司按正常工作时间标准支付。超出40小时的工作时间按正常工作时间标准的1.5倍付酬。程序代码:#include using namespace std;int main(){ int dwHour = 0; int price = 100; float salar
2013-09-19 06:34:30 1100
原创 Assignment 2
1)某商场优惠活动规定,某种商品单价(price)80元,一次购买(totoal)5件以上(包含5件)10件以下(不包含10件)打9折(90%),一次购买10件以上(包含10件)打8折。设计程序根据客户的购买量计算总价。程序代码:#include #define PRICE 80using namespace std;int main(int argc,char* argv[]
2013-09-19 06:33:08 785
原创 Assignment 1
1. Be familiar with C++ developing environment . 在编程环境中输入以下程序,分析程序结构和执行结果。(1)简单计算程序#include //预处理命令using namespace std;void main(){ int radius,high; double volume; cout
2013-09-19 06:29:36 585
原创 Html and Xhtml
Yesterday, I found a difficult problem that to modify the following html code validating by XHTML 1.0 strict version. Current CoursesCS215CS207CS201Past CoursesThe system always
2013-09-18 23:14:22 599
原创 Web and Internet
It is important to understand that the Internet and the Web are not the same thing.The Internet is a collection of computers and other devices connected by equipment that allows them to communicate
2013-09-16 07:44:18 732
原创 Html tag note
"ComputerOutput" Tags TagDescriptionDefines computer code textDefines keyboard text Defines sample computer codeDefines
2013-09-16 07:39:36 701
请问开发php用那个开发工具比较好呀?
2013-10-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人