flath's space
百度空间 | 百度首页 
               
 
文章列表
 
2009-07-01 09:55
<div id="movieArea">

<div id="flashContent">
<p>Flashコンテンツの閲覧にはFlash Playerが必要です。</p>
</div>
<
 
2009-06-28 16:33
<div id="flashbanner">
This banner of UCH images requires Adobe Flash, Version 8 or above, to view.
</div>
<script type="text/javascript">
var so = new SWFObject("banner/banner_all.swf
 
2009-06-11 08:42
<html>
<head>
<link rel="stylesheet" href="css.css" type="text/css" media="all" />
</head>
<body>
<ul id="skyline">
    <li id="panel1b"><a href="#1"></a></li>
    <li id="panel2b"><a href="#2"></a></li>
    <li id="panel3b">
 
2009-05-30 09:38
传统的方法:这种方法只能是修改编辑器里面增加js
<img onload="javascript:if(this.width>560)this.width=560;" src="upfile_pic/url.jpg">
<img alt="" src="uploadfile/url.jpg" onload="javascript:if(this.width>screen.width-333)this.width=screen.width-333" >
现在的方法:使用js和css结合
<script>
function SetImg(obj){
if(obj.offsetWidth>obj.offsetHeight)
obj.style.width=obj.offsetWidth>=200?"2
 
2009-05-28 21:42
 
2009-05-22 21:02
1、认真分析例题:从别人的源代码中学习是最简单的学习方法。书上的例题大部分都是作者精心挑选的,最能体现某种语法特点或思想观念的程序,认真体会这些例题,理解程序的逻辑和结构,多问自己几个问题:作者为什么要设计这个类?这个类有什么作用?作者是如何设计这个类的?如何使用这个类的?这个类是否还可以用在别处?等等。把上述问题中的"类"换成"函数"、"模板"等同样适用。遇到不好理解的例题我有一个笨办法,就是把源程序输入一遍,这个办法确实很有效,看了半天也看不懂
 
2009-03-31 21:35
#include<iostream.h>//纯虚函数和抽象类示例
class shape{
public:
virtual double area() const=0;
};
class point{
double x,y;
public:
point(double x0=0.0,double y0=0.0):x(x0),y(y0){}
double getx() const{return x;}
double gety() const {return y;}
};
class rectangle:public shape{
point ul;
point dr;
public:
rectangle(point p1,point p2):ul(p1),dr(p2){}
virtual double area()const{
retur
 
2009-03-11 21:29
#include<iostream>
using namespace std;
class date;
class time
{
public:
time(int ,int,int);
void display(date&);
private:
int hour;
int minute;
int sec;
};

class date
{
public:
date(int,int,int);
friend void time::display(date&);
private:
int month;
int day;
int year;
};

time::time(int h,int m,int s)
{
hour=h;
minute=m;
sec=s;
 
2009-03-09 20:45
#include<iostream>
using namespace std;
class array_max
{
public:
void set_value();
void max_value();
void show_value();
private:
int array[10];
int max;
};
void array_max::set_value()//成员函数定义
{
int i;
for(i=0;i<10;i++)
cin>>array[i];
}
void array_max::max_value()
{
int i;
max=array[0];
for(i=1;i<10;i++)
if(array[i]>max)max=array[i];
}
void
 
2009-03-07 21:32
后悔在那里购买了六年的域名,由于我上网习惯缘故,只要哪个网站有密码找回功能并且不是经常登录的,一般我都任意设置密码,每次登陆都是临时找回在邮箱里确认然后登录,可是这回栽了底朝天,废了我几百块钱事小,浪费了我的重要域名管理权限,居然是由于我在密码找回时候,密码提示问题居然说我出错!因为我有非常良好的密码习惯,而且密码提示问题是自定义方式,没有出错的可能,除非是时代互联的用户数据库被修改过!而且最糟糕的是无论是邮件方式通知网站,还是在线qq客服都是没有实质性的解决。

如有雷同遭遇者请留言!时
 
2009-03-03 21:04
#define NULL 0
#include<iostream>
using namespace std;
struct student
{
long num;
float score;
struct student *next;
};
int main()
{
student a,b,c,*head,*p;
a.num=31001;a.score=89.5;//对各结点的num和score成员赋值
b.num=31003;b.score=90;
c.num=31007;c.score=85;
head=&a;//将结点a的起始地址赋给头指针head
a.next=&b;//将结点b的起始地址赋给a结点的next成员
b.next=&c;
c.next=NULL;//此结点的next成员不存放其他结点
 
2009-03-01 11:39
//但是用户可以进入一个太大的值,编译系统不能处理它。举例来说,当试图给一个价值1亿多的“数据”的问题,系统不能分配多少内存,我们准备这个案例(错误:不能被分配的内存,总是检查是否一个动态分配内存块是成功的。因此,如果你使用nothrow方法,你都应该随时检查值的指针返回。否则,使用例外的方法,即使你不处理例外。这样,这个项目将终止在这一点上没有造成的意外收获的继续执行代码,即内存块已经分配时,实际上它并不是。
#include<iostream>
#include<new>
using namespace std;
int main()
 
2009-02-25 16:57
//源自印度神话传说,历经历史长河终于我得以c++的形式见识了其算法,下面程序来源《易学c++》
#include<iostream>
using namespace std;
void hanoi(int n,char a,char b,char c);
void move(char sour,char dest);
int main()
{
   int n;
   cout<<"请输入汉诺塔盘子的个数:";
   cin>>n;
   hanoi(n,'a','b','c');
   cout<<"完成"<<endl;
   return 0;
 
2009-02-21 20:28
#include<iostream>
#include<stdlib.h>
using namespace std;
bool password();
int main(){
do{}
while(password()!=true);
cout<<"welcome to system!"<<endl;
return 0;
}
bool password(){
   static numofrun=0;
   if(numofrun<3){
   int psw;
   cout<<"第"<<++numofrun<<"次输入密码"<<endl;
   cin>
 
2009-02-09 21:08
//在函数中对数组参数的修改会影响到实参本身的值,因为我们在函数中将内存中的数据作了操作,所以影响到了实参。
#include<iostream>
#include<iomanip>
using namespace std;
void sort(int a[],int size);//将数组从大到小排序
int main(){
int num[]={2,3,4,5,6,1,8,9};
const int size=sizeof(num)/sizeof(int);
sort(num,size);
cout<<"排列后的数组元素"<<endl;
for(int i=0;i<size;i++){//输出排好以后的数组
   
 
     
 
 
本站公告
 
 
 
     
 
日历
 
     
 
文章分类
 
 
 
System(10)
 
 
 
Web(51)
 
 
 
 
Coding(16)
 
 
Asp(3)
 
 
 
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
 
其它
 
已有人次访问本空间
 
订阅RSS  什么是RSS?

您也想拥有这样的空间?请点此申请。
     


©2009 Baidu