现在位置: 首页 > ellipsis发表的所有文章
  • 11月
  • 23日
综合 ⁄ 共 2049字 评论关闭
Imports System.Runtime.InteropServices.Marshal Then, replace the default Page_Load event with the code in Figure 1. Private Sub Page_Load(ByVal sender As System.Object, _   ByVal e As System.EventArgs) Handles MyBase.Load     Dim oExcel As New Excel.Application()     Dim oBooks As Excel.Workbooks, oBook As Excel.Workbook     Dim oSheets As Excel.Sheets, oSheet As Excel.Worksheet     Dim oCells As Excel.Range     Dim sFile As String, sTemplate As String     Dim dt As DataTable = _     CT......
阅读全文
1、下载vmware!        本人是使用的vmware10版本的,百度下很多,自己下载。由于vmware收费,建议使用10版本,这里给出序列号。第一个绝对可用,已验证。   5C4A7-6Q20J-6ZD58-K2C72-0AKPE   1Y0W5-0W205-7Z8J0-C8C5M-9A6MF   NF2A7-AYK43-CZCT8-FCAN6-CA84   4A4QH-6Q195-XZW10-6K8N2-A3CJX   5A6ZT-20JD2-LZWZ9-H38N0-92L62 2、安装vmware!      一路next,需要序列号的时候输入上文中的一个序列号。 3、创建虚拟机!       点击vmware上“创建新的虚拟机”,一路next,过程中会遇到“安装客户机操作系统”,此处点击“稍后安装操作......
阅读全文
  • 05月
  • 15日
综合 ⁄ 共 1149字 评论关闭
脚本 ping -w 1000 -n %1 1.0.0.1 exit c代码 #include "stdafx.h" #include <string> #include <Windows.h> static void runScript(const char * cmdline); int _tmain(int argc, _TCHAR* argv[]) { runScript(" /k c:\\temp\\sleep.bat 5"); return 0; } void runScript(const char * cmdline) { STARTUPINFOA startInf; memset( &startInf, 0, sizeof startInf ); startInf.cb = sizeof(startInf); // If you want to redirect result of command, set startInf.hStdOutput to a f......
阅读全文
  • 02月
  • 07日
综合 ⁄ 共 2191字 评论关闭
链表球环路的问题经常出现在面试题中,希望通过下面的解释能偶掌握这几个问题。 问题: 1、如何判断一个链表是不是这类链表? 2、如果链表为存在环,如何算环的长度? 3、如果链表为存在环,如何算柄的长度? 第一问是否有环就用快慢指针,fast=fast->next-next,slow=slow->next;代码如下 [cpp] view plaincopy bool IsExitsLoop(slist *head)   {       slist *slow = head, *fast = head;          while ( fast && fast->next )        {           slow = slow->next;         ......
阅读全文
  • 10月
  • 19日
综合 ⁄ 共 19926字 评论关闭
                 作者:zuoxiaolong8810(左潇龙),转载请注明出处。                  上章我们着重讲解了观察者模式和事件驱动,那么本章来讨论一个个人认为在开发过程中出场率极高的设计模式,策略模式。                  策略模式在LZ第一次接触到的时候,LZ是这么理解的,就是如果我们想往一个方法当中插入随便一段代码的话,就是策略模式。即如下形式。 public class MyClass { public void myMethod(){ System.out.println("方法里的代码"); //LZ想在这插入一段代码,而且这个代码是可以改变的,想怎么变就怎么变 ......
阅读全文
  • 06月
  • 07日
综合 ⁄ 共 9049字 评论关闭
cegui基础2 cegui 6 统一度量系统使用指南 注意:此教程仅适用于CEGUI >= 0.4.0 统一度量系统使得我们可以用相对部分和绝对部分共同来表示一个坐标或大小。这给窗口布局带来了极大的方便。比如:你可以用相对尺寸来表示高度,使用绝对大小表示宽度,或者混合使用。 统一度量系统共有三种形式     * UDim      :  简单的一维     * UVector2  :  由两个UDim组成的二维向量     * URect     :  用四个UDim表示一个矩形,依次为:左,上,右,下 UDim UDim是最简单的了 1 格式为 :{scale, offset}   2 例如  :{1,......
阅读全文
  • 05月
  • 02日
综合 ⁄ 共 433字 评论关闭
解决办法重新编译一下Python源码安装包,如下:     1  tar jxvf Python-2.7.3.tar.bz2     2  cd Python-2.7.3/     3  ls     4  sudo ./configure     5  gvim Modules/Setup     6  sudo gvim Modules/Setup        在这里把464行左右的 找到,  老版本为454行 #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz 去掉注释      zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz          7  sudo make test     8  sudo make -i install 编译的时候出现"/usr/bin/ld: cannot find -lz"错误......
阅读全文
  • 04月
  • 02日
综合 ⁄ 共 114字 评论关闭
Windows Server 2003 Service Pack 2 http://technet.microsoft.com/zh-cn/windowsserver/bb229701.aspx   因为安装服务器。下个最新版本补丁,聊胜于无。
阅读全文
  • 03月
  • 18日
综合 ⁄ 共 6283字 评论关闭
【日常小记】linux中强大且常用命令:find、grep 2010-12-25 19:48 by 吴秦, 17502 阅读, 11 评论, 收藏, 编辑 在linux下面工作,有些命令能够大大提高效率。本文就向大家介绍find、grep命令,他哥俩可以算是必会的linux命令,我几乎每天都要用到他们。本文结构如下: find命令 find命令的一般形式 find命令的常用选项及实例 find与xargs grep命令 grep命令的一般形式 grep正则表达式元字符集(基本集) grep命令的常用选项及实例 1、find命令 find命令是一个无处不在命令,是linux中最有用的命令之一。find命令用于:在......
阅读全文
  • 03月
  • 18日
综合 ⁄ 共 3243字 评论关闭
375. Query on a tree Problem code: QTREE You are given a tree (an acyclic undirected connected graph) with N nodes, and edges numbered 1, 2, 3...N-1. We will ask you to perfrom some instructions of the following form: CHANGE i ti : change the cost of the i-th edge to ti or QUERY a b : ask for the maximum edge cost on the path from node a to node b Input The first line of input contains an integer t, the number of test cases (t <= 20). t test cases follow. For each test......
阅读全文
  • 02月
  • 22日
综合 ⁄ 共 3144字 评论关闭
Problem Description Because of the huge population of China, public transportation is very important. Bus is an important transportation method in traditional public transportation system. And it’s still playing an important role even now. The bus system of City X is quite strange. Unlike other city’s system, the cost of ticket is calculated based on the distance between the two stations. Here is a list which describes the relationship between the distance and the cost. Your neighbor is ......
阅读全文
  • 02月
  • 22日
综合 ⁄ 共 1060字 评论关闭
Total Submission(s) : 10 Accepted Submission(s) : 4 Problem Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplication, exponentiation by a non-negative integer is defined in the normal way: a^0 = "" (the empty string) and a^(n+1) = a*(a^n). Input Each test case is a line of input representing s, a string of printable characters. The length of s will be at lea......
阅读全文