现在位置: 首页 > qepjun发表的所有文章
  • 10月
  • 05日
综合 ⁄ 共 1730字 评论关闭
刚装了win7和VS2010。看了下配置OpenGL的方法和以前不太一样。搜索得之。 glut下载地址: http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip glut.h  ---> C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Include/gl glut.dll,glut32.dll ---> C:/Windows/SysWOW64 (windows7 64位操作系统)                          ---> C:/Windows/System32   (windows7 32位操作系统) glut.lib,glut32.lib ---> C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/lib !!无须!!用宏 #define GLUT_D......
阅读全文
  • 04月
  • 23日
综合 ⁄ 共 436字 评论关闭
7.1: 同产品软件(项目组)内,最好使用相同的编辑器,并使用相同的设置选项。  说明:同一项目组最好采用相同的智能语言编辑器,如Muiti Editor ,Visual Editor 等,并设计、使用一套缩进宏及注释宏等,将缩进等问题交由编辑器处理。   7.2:某些语句经编译后产生告警,但如果你认为它是正确的,那么应通过某种手段去掉告  警信息。  说明:在Borland C/C++ 中,可用“#pragma  warn”来关掉或打开某些告警。  示例:  #pragma warn -rvl // 关闭告警  int examples_fun( void )  {        //  程序,但无return 语句。  }  #pragm......
阅读全文
  • 04月
  • 12日
综合 ⁄ 共 8004字 评论关闭
Alice and Bob Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 155    Accepted Submission(s): 110 Problem Description Bob and Alice got separated in the Square, they agreed that if they get separated, they'll meet back at the coordinate point (x, y). Unfortunately they forgot to define the origin of coordinates and the coordinate axis direction. Now, Bob in the lower left corner of the Square, Alice in the upper right corner of the ......
阅读全文
  • 10月
  • 18日
综合 ⁄ 共 1509字 评论关闭
----------------------------------------------------------- #!/bin/bash set -e command 1 command 2 ... exit 0 ---------------------------------------------------------- Every script you write should include set -e at the top. This tells bash that it should exit the script if any statement returns a non-true return value. The benefit of using -e is that it prevents errors snowballing into serious issues when they could have been caught earlier. Again, for readability you may want to ......
阅读全文
  • 06月
  • 07日
综合 ⁄ 共 2732字 评论关闭
安装 Windows Phone SDK Windows Phone 51(共 53)对本文的评价是有帮助 - 评价此主题 2012/2/9 Windows Phone SDK 包括 Visual Studio 2010 Express for Windows Phone、Windows Phone 模拟器、XNA Game Studio、Expression Blend for Windows Phone、示例以及文档。如果您的开发计算机上已安装 Visual Studio 2010 Professional 或更高版本,则也会自动安装 Visual Studio 2010 Professional 的一个插件。有关更多信息,请参阅 Visual Studio 2010 Express for Windows Phone。 您可以下载和安装在一个文件中......
阅读全文
  • 06月
  • 07日
综合 ⁄ 共 185字 评论关闭
<script type="text/javascript"> var node = document.createElement('link'); node.rel = 'stylesheet'; node.href = 'css/sch1.css'; document.getElementsByTagName('head')[0].appendChild(node);  </script>
阅读全文
  • 05月
  • 10日
综合 ⁄ 共 573字 评论关闭
原题 一根绳子,长度为n米。将其切成几段,每一段的长度都是整数。请给出一种切法,使得切成的各段绳子之间的乘积是最大的。注意,最少要切一下的。 问题分析:由经验可得,n的拆分有三种情况 (1)n<4时,拆分的最大乘积比原来小,2拆分成(1,1,)乘积为1,3拆分成(1,2)乘积为2; (2)n=4时,拆分最大乘积与原来相等,4拆分成(2,2),乘积为4,; (3)n>4时,拆分后最大乘积比原来大,如10拆分成(5,5)乘积为25,若拆分成(4,6)乘积为24,综合其他情况可得,拆分的两个数的差越小,乘积就越大,所以若n为偶数就拆分成(n/......
阅读全文
  • 03月
  • 30日
综合 ⁄ 共 409字 评论关闭
前提:SD卡已经分区,通过读卡器或者TF卡套挂在到ubuntu系统 1 使用df -h 命令查看sd卡分区信息和挂载信息 例如: /dev/sdb1 挂载点为/media/label1 /dev/sdb2 挂载点为/mdeia/label2     2 卸载SD卡 umount /media/label1 umount /media/label2 3 格式化SD卡 sudo fdisk /dev/sdb 输入选项m,列出命令列表 输入命令p,参看SD卡具体信息 删除所有SD卡,输入命令d,会显示 Partition number (1-4): 1 (这里指sdb1);同理删除sdb2 4 执行w,使删除命令生效 内容参考:http://blog.sina.com.cn/s/blog_68e596750100jx9m.html 5 清......
阅读全文
  • 02月
  • 22日
综合 ⁄ 共 3143字 评论关闭
Sort Me Time Limit: 2000ms, Special Time Limit:5000ms, Memory Limit:65536KB Total submit users: 69, Accepted users: 65 Problem 12946 : No special judgement Problem description We know the normal alphabetical order of the English alphabet, and we can then sort words or other letter sequences.  For instance these words are sorted: ANTLER ANY COW HILL HOW HOWEVER WHATEVER ZONE The standard rules for sorting letter sequences are used: The first letters are in alphabetical  ......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 864字 评论关闭
  textView = (TextView) findViewById(R.id.textview); SpannableStringBuilder builder = new SpannableStringBuilder(textView.getText().toString()); //ForegroundColorSpan 为文字前景色,BackgroundColorSpan为文字背景色 ForegroundColorSpan redSpan = new ForegroundColorSpan(Color.RED); ForegroundColorSpan whiteSpan = new ForegroundColorSpan(Color.WHITE); ForegroundColorSpan blueSpan = new ForegroundColorSpan(Color.BLUE); ForegroundColorSpan greenSpan = new ForegroundColor......
阅读全文
  • 02月
  • 04日
综合 ⁄ 共 4650字 评论关闭
你觉得自己是一个Java专家吗?是否肯定自己已经全面掌握了Java的异常处理机制?在下面这段代码中,你能够迅速找出异常处理的六个问题吗? 1 OutputStreamWriter out = ... 2 java.sql.Connection conn = ... 3 try { // ⑸ 4  Statement stat = conn.createStatement(); 5  ResultSet rs = stat.executeQuery( 6   "select uid, name from user"); 7  while (rs.next()) 8  { 9   out.println("ID:" + rs.getString("uid") // ⑹ 10    ",姓名:" + rs.getString("name")); 11  } 12  conn.close(); ......
阅读全文
  • 01月
  • 24日
综合 ⁄ 共 238字 评论关闭
Easyui中使用jquery或js动态添加元素时出现的样式失效的解决方法  可以使用$.parser.parse();这个方法进行处理; 例如: $.parser.parse(); 表示对整个页面重新渲染,渲染完就可以看到easyui原来的样式了; var targetObj = $("<input name='mydate' class='easyui-datebox'>").appendTo("#id"); $.parser.parse(targetObj); 表示重新渲染某个特定的组件。
阅读全文