• 音乐闹钟 当到你设置的时间时就会播放音乐

    使用Matlab编写的 这个是程序的运行界面 当你设置时间时,到点就会播放音乐,以及自动关机

    4
    259
    4.88MB
    2011-07-06
    9
  • n皇后问题的求解答案

    #include <iostream> #include <vector> using namespace std; void backtrack(int, vector<int>, int, int); bool place(int, vector<int>); void displayqueen(vector<int>, int, int); int sum = 0; int main(void) { int N; int kind; cout<<"请输入皇后的个数:"; cin>>N; vector<int> x(N+1,0); cout<<"----------------------------------"<<endl; cout<<'\t'<<"结果显示的形式:"<<endl; cout<<'\t'<<" 1.直接形式."<<endl; cout<<'\t'<<" 2.矩阵形式."<<endl; cout<<"----------------------------------"<<endl; cout<<"请输入你想显示结果的形式:"; cin>>kind; backtrack(1, x, N, kind); return 0; } void backtrack(int t, vector<int> x, int N, int kind) { if(t > N) { sum += 1; displayqueen(x, N, kind); } else { for(int i=1; i<N+1; i++) { x[t] = i; if(place(t, x)) { backtrack(t+1, x, N, kind); } } } } bool place(int k, vector<int> x) { for(int j=1; j<k; j++) { if((abs(k-j) == abs(x[k]-x[j])) || (x[k] == x[j])) { return false; break; } } return true; } void displayqueen(vector<int> x, int N, int kind) { if(kind == 1) { cout<<"第"<<sum<<"个解:"; for(int i=1; i<N+1; i++) { cout<<x[i]<<' '; } cout<<endl; } else { vector<vector<int> > S(N+1, vector<int>(N+1)); for(int i=1; i<N+1; i++) { for(int j=1; j<N+1; j++) { S[i][j] = 0; } } for(i=1; i<N+1; i++) { for(int j=1; j<N+1; j++) { S[i][x[i]] = 1; } } cout<<"第"<<sum<<"个解:"<<endl; for(i=1; i<N+1; i++) { for(int j=1; j<N+1; j++) { cout<<S[i][j]<<' '; } cout<<endl; } } }

    5
    1085
    28KB
    2011-07-06
    50
  • 动态网页与静态网页的区别

    1.1.1 静态网页 静态网页是网站建设初期经常采用的一种形式。网站建设者把内容设计成静态网页,访问者只能被动地浏览网站建设者提供的网页内容。其特点如下。  网页内容不会发生变化,除非网页设计者修改了网页的内容。  不能实现和浏览网页的用户之间的交互。信息流向是单向的,即从服务器到浏览器。服务器不能根据用户的选择调整返回给用户的内容。静态网页的浏览过程如图1-1所示。 1.1.2 动态网页 网络技术日新月异,许多网页文件扩展名不再只是.htm,还有.php、.asp等,这些都是采用动态网页技术制作出来的。动态网页其实就是建立在B/S架构上的服务器端脚本程序。在浏览器端显示的网页是服务器端程序运行的结果。 静态网页与动态网页的区别在于Web服务器对它们的处理方式不同。当Web服务器接收到对静态网页的请求时,服务器直接将该页发送给客户浏览器,不进行任何处理。如果接收到对动态网页的请求,则从Web服务器中找到该文件,并将它传递给一个称为应用程序服务器的特殊软件扩展,由它负责解释和执行网页,将执行后的结果传递给客户浏览器。如图1-2所示为动态网页的工作原理图。 动态网页的一般特点如下。  动态网页以数据库技术为基础,可以大大降低网站维护的工作量。  采用动态网页技术的网站可以实现更多的功能,如用户注册、用户登录、搜索查询、用户管理、订单管理等。  动态网页并不是独立存在于服务器上的网页文件,只有当用户请求时服务器才返回一个完整的网页。  搜索引擎一般不可能从一个网站的数据库中访问全部网页,因此采用动态网页的网站在进行搜索引擎推广时需要做一定的技术处理才能适应搜索引擎的要求。 图1-2 动态网页的工作原理图 1.2 网站的前期规划

    5
    871
    2.36MB
    2011-07-06
    32
  • 2010年12月英语四级真题与答案

    Help Children to Be Independent Thanks to the “family plan”policy,today in China many families have one child.Loving and caring for children is an old Chinese tradition that has remained for thousands of years.But the children are spoilt so much that they have less independence.They rely on their parents in everything.That is bad for a child's growing.Therefore,parents should develop the children's independence instead of doing everything for them. There are some ways to help children to be independent.First of all,you should believe your children can do the things well.Second,give them more chances to practise,when they don't know how to do it,just tell them the way.Third,don't be afraid to see them fail.In the beginning,they may do something bad.But don't worry,just let them try again.They can do the work as well as you if given more time. To be independent is good for the children.A child who is independent will succeed easily in the future.

    0
    74
    413KB
    2010-12-20
    10
  • 电脑远程访问控制及服务器建立和文件共享

    3.远程登录需要的服务项目: Server Terminal Services Telnet NT LM Security Support Provider(Telnet需要依存与此服务,因此需要先启动此服务)

    3
    213
    55KB
    2010-10-18
    34
  • 分享小兵

    成功上传3个资源即可获取
关注 私信
上传资源赚积分or赚钱