现在位置: 首页 > Stedinise发表的所有文章
  • 10月
  • 16日
综合 ⁄ 共 919字 评论关闭
/** * 有一个 M x N 的矩阵,其中每个格子里面都有特定的钱。 * 左上角走到右下角,只能向右或者向下走,问怎么走才能捡到最多的钱。 * 输出捡钱的路径。 * 解析: 动态规划。 首先找到子结构,构造递推式。 * 对于每个位置能捡到的最多的钱是: * a[i][j] = max{a[i-1][j] + w[i][j],a[i][j-1] + w[i][j]} */ #include <stdio.h> #define M 5 #define N 4 int w[M][N]; //矩阵 int a[M][N]; //当前捡到的最大的钱的值 int path[M][N]; //记录路径,1表示从上面捡着钱下来,0表示从左边捡着钱过来 void fin......
阅读全文
  • 02月
  • 08日
综合 ⁄ 共 39字 评论关闭
http://zhangshixi.iteye.com/blog/673319
阅读全文
  • 10月
  • 21日
综合 ⁄ 共 460字 评论关闭
*得到库信息; proc sql;    select * from dictionary.dictionaries; quit; *获取查询表名; proc sql;    select unique memname from dictionary.dictionaries; quit; *or; proc sql;    select memname from dictionary.members; quit; *将获取的表名信息存表; proc sql;    create table dmembers as    select memname from dictionary.members; quit; *描述查询库内工具的信息; proc sql;    describe table dictionary.columns; quit; proc sql;    describe table dictionary.tables; quit; proc sql;    describe table di......
阅读全文
  • 05月
  • 29日
综合 ⁄ 共 5879字 评论关闭
1、第一种方法:用微软提供的官方文档 From : http://support.microsoft.com/kb/181934/en-us/   Generally, when you want to display a message box for a limited amount of time, you must implement a regular dialog box that closes itself after a specified amount of time. The problem with this method is that you lose the standard message box functionality that Windows provides. The following example shows how to use the MessageBox function to create a message box that automatically closes after a......
阅读全文
  • 04月
  • 17日
综合 ⁄ 共 1127字 评论关闭
The most simple is push-button support, it could look like this: The AP name is obtained from the WPS scan results (see new versions of iw for how to parse this). Then once the button on the AP is pushed, wpa_supplicant sends an eventWPS-AP-AVAILABLE-PBC. At that point, the scan results are checked (akinwpa_cli scan_results) whether the selected BSS containsWPS-PBC, like this: 00:1d:7e:4a:a1:ab 2432 69 [WPA2-PSK-TKIP+CCMP][WPS-PBC] jo If it does, the button "Con......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 1228字 评论关闭
一、项目文档   开发文档(开发人员使用的文档,5和6部分的文档也适合技术支持人员使用)(借鉴软件开发周期模型方式) 按照项目活动分类: 1. project planning    overview    proposal(target and benefits)    project plan(resource needs)    legal issues    QA plan    投标方案 2. requirements and specification   user needs   software requirements specification 3. architecture and design 4. implementation and testing 5. deployment and installation   release checklist   release notes 1.6. support   FA......
阅读全文
  • 02月
  • 13日
综合 ⁄ 共 1527字 评论关闭
Sizes of iPhone UI Elements Element Size (in points) Window (including status bar) 320 x 480 pts Status Bar(How to hide the status bar) 20 pts View inside window  (visible status bar) 320 x 460 Navigation Bar 44 pts Nav Bar Image / Toolbar Image up to 20 x 20 pts (transparent PNG) Tab Bar 49 pts Tab Bar Icon up to 30 x 30 pts (transparent PNGs) Text Field 31 pts Height of a view inside  a navigation bar 416 pts Height of a view inside  a ta......
阅读全文
  • 02月
  • 12日
综合 ⁄ 共 4131字 评论关闭
C++的static有两种用法:面向过程程序设计中的static和面向对象程序设计中的static。前者应用于普通变量和函数,不涉及类;后者主要说明static在类中的作用。 一、面向过程设计中的static 1、静态全局变量 在全局变量前,加上关键字static,该变量就被定义成为一个静态全局变量。我们先举一个静态全局变量的例子,如下: //Example 1 #include <iostream.h> void fn(); static int n; //定义静态全局变量 void main() { n=20; cout<<n<<endl; fn(); } void fn() { n++; cout<<n<&......
阅读全文
  • 02月
  • 07日
综合 ⁄ 共 4009字 评论关闭
//V4L2使用示例程序 //来源:网络 //时间:2013.08.27 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <getopt.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <malloc.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/time.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <asm/types.h> #......
阅读全文
  • 01月
  • 28日
综合 ⁄ 共 3577字 评论关闭
苹果公司的Macintosh计算机因其在许多性能及技术方面的领先性,吸引着包括影视制作,广告设计,出版印刷等许多用户群体。同时Macintosh计算机的局域网技术经过十多年的发展,也有了串口连接(即LocalTalk方式)和以太网连接(即EtherTalk)等方式。然而,以前Macintosh计算机与PC机在跨平台联接方面一直是一个问题,很少有系统能够令人满意地解决这一问题。现在,随着Windows NT的日臻完善,用户终于可以方便地把两种平台集成起来,从而发挥各自优势,实现使资源充分共享。      Macintosh计算机使用AppleTalk协议进行网络会话,Wi......
阅读全文
  • 01月
  • 24日
综合 ⁄ 共 502字 评论关闭
<div id="Layer1" style="position:absolute;      left:186px;      top:96px;      width:376px;      height:295px;      background-color: #CCCCCC;"></div>  <div id="Layer2" style="position:absolute;      left:294px;      top:34px;      width:407px;      height:315px;      background-color: #0066FF;"></div>  <a href="#" onClick="changes('Layer1')">链接1</a> <a href="#" onClick="changes('Layer2')">链接1</a>  <script type="text/javascript"> ......
阅读全文
  • 01月
  • 15日
综合 ⁄ 共 220字 评论关闭
英汉词典站点: Dict.CN:http://dict.cn/        百度词典:http://dict.baidu.com/ 英英词典站点:TheFreeDictionary:http://www.thefreedictionary.com/The Phrase Finder:http://www.phrases.org.uk/index.htmlUrban Dictionary: http://www.urbandictionary.com/
阅读全文