现在位置: 首页 > twirling发表的所有文章
  • 11月
  • 18日
综合 ⁄ 共 5529字 评论关闭
原作出处:http://www.codeproject.com/useritems/tips.asp?df=100 一..Net Framework 1.  如何获得系统文件夹 使用System.Envioment类的GetFolderPath方法;例如: Environment.GetFolderPath( Environment.SpecialFolder.Personal ) 2.  如何获得正在执行的exe文件的路径 1)  使用Application类的ExecutablePath属性 2)  System.Reflection.Assembly.GetExecutingAssembly().Location 3.  如何检测操作系统的版本 使用Envioment的OSVersion属性,例如: OperatingSystem os = Environment.OSVersion; MessageBox.Show(os.V......
阅读全文
  • 05月
  • 07日
综合 ⁄ 共 413字 评论关闭
1、下载rpmforge的rpm文件包   32位系统   [root@...]#  wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.i686.rpm   64位系统   [root@...]#  wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm   我的是64位.   2.安装,我使用的是yum [root@...]#  yum install rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm     3.现在安装ntfs-3g   [root@...]#   yum install fuse-ntfs-3g 这样就挂载成功了,可以直接在我的电脑里打开ntfs格式的硬......
阅读全文
  • 12月
  • 22日
综合 ⁄ 共 973字 评论关闭
    栈(stack)是限制插入和删除只能在一个位置上进行的有序表,该位置是表的末端,即最后插入的元素的位置,叫做栈的顶(top)。栈的修改是按先进后出的原则进行的,因此,栈又叫LIFO(Last In First Out)表。 栈有三种基本操作: 进栈 在栈顶增加一个元素。 出栈 把栈顶元素删除。 取栈顶元素 在不删除的情况下得到栈顶元素的值。 另外很多实现可以完成一些其他的操作: 清空 清空一个栈。 求元素个数 判空 判断一个栈是否为空。 //-------------------------------------------------------- 了解一下STL(C++ Standa......
阅读全文
  • 12月
  • 11日
综合 ⁄ 共 2888字 评论关闭
矩阵空间是 3x4,其左上角有一个子矩阵2x3,表示如下 11 22 33 0 44 55 66 0 0   0    0   0 i, j分别表示行索引,列索引 如果用列存储的话,leading dimension = 3(矩阵空间的行个数), 换算公式是i + j *ld 11 44 0 22 55 0 33 66 0 0 0 0 如果是用行存储, leading dimension = 4(矩阵空间的列个数),换算公式是 i*ld + j 11 22 33 0 44 55 66 0 0 0 0 0 cublas中矩阵用列存储表示,cusparse中的矩阵用行CNC表示 在cuda中二维数组是按照列存储的,在c中二维数组按照行存储,在c语言中的一个矩阵(二维数组)A = M X K, ......
阅读全文
  • 05月
  • 27日
综合 ⁄ 共 793字 评论关闭
4.1.8 Multisampling in Direct3D  In the next section, we will be required to fill out a DXGI_SAMPLE_DESC structure. This structure has two members and is defined as follows: typedef struct DXGI_SAMPLE_DESC { UINT Count; UINT Quality; }  DXGI_SAMPLE_DESC, *LPDXGI_SAMPLE_DESC; The Count member specifies the number of samples to take per pixel, and the Quality member is used to specify the desired quality level (what “quality level” means can vary across hardware manufacturers). Higher sampl......
阅读全文
        SOAP的消息结构与数据的组织方法                      分类:             XML              2007-07-20 11:31     1919人阅读     评论(0)     收藏     举报     soapheaderxmlactor文档schema SOAP技术与B2B应用集成——SOAP的消息结构与数据的组织方法 文档选项 <tr valign="top"><td width="8"><img alt="" height="1&amp......
阅读全文
  • 05月
  • 14日
综合 ⁄ 共 614字 评论关闭
(以oracle9i版本为例,本机必须安装oralce9i的客户端) 第一步:orahome92-configuration and migration tools- net managers 第二步:在“服务命名”中点“+” 第三步:编辑一个你的服务名,(不是对方的数据库名) 第四步:默认选择TCP/IP 第五步:主机名填入对方的机器IP地址,端口默认(不要改) 第六步:服务名是对方的数据库名(要问对方),连接类型默认(不要改) 第七步:连接测试 一般测试结果需要“更改登录” 更改登录中,在用户名和口令中,录入对方数据库的用户名口令(你要访问的库) 测试成功!点击......
阅读全文
  • 05月
  • 05日
综合 ⁄ 共 4528字 评论关闭
jQueryEasyUI Messager基本使用 一、jQueryEasyUI下载地址 http://www.jeasyui.com/ 二、jQueryEasyUI Messager基本使用 1、$.messager.alert(title, msg, icon, fn) 1>、基本用法 代码: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title>消息提示框</title>     <link href="/jquery-easyui-1.2.4/themes/default/easyui.css" rel="stylesheet" type="text/css" />     <link href="/jquery......
阅读全文
  • 04月
  • 07日
综合 ⁄ 共 386字 评论关闭
[UNIX] 打开%CATALINA_HOME%\bin 目录下的catalina.sh文件 在if ["$1"="jpda"] ; then语句前加入 JAVA_OPTS="$JAVA_OPTS-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" 查看验证是否配置成功,如果启动tomcat时出现以下语句,则说明配置成功。 [WINDOWS] 打开%CATALINA_HOME%\bin 目录下的catalina.bat文件 在:noJpda这一行后面添加如下语句: SET CATALINA_OPTS=-server-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
阅读全文
  • 04月
  • 07日
综合 ⁄ 共 2046字 评论关闭
  用C#获取系统时间 --DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒    currentTime=System.DateTime.Now; 1.2 取当前年    int 年=currentTime.Year; 1.3 取当前月    int 月=currentTime.Month; 1.4 取当前日    int 日=currentTime.Day; 1.5 取当前时    int 时=currentTime.Hour; 1.6 取当前分    int 分=currentTime.Minute; 1.7 取当前秒    int 秒=currentTime.Second; 1.8 取当前毫秒    int 毫秒=currentTime.Millisecond; (变量可用中文) 1.9 取中文日期显示_......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 3826字 评论关闭
1 文档类    (1) Doxygen    参考站点:http://www.doxygen.org    Doxygen是一种适合C风格语言(如C++、C、IDL、Java甚至包括C#和PHP)的、开放源码的、基于命令行的文档产生器。    (2) C++2HTML    参考站点:http://www.bedaux.net/cpp2html/    把C++代码变成语法高亮的HTML    (3) CodeColorizer    参考站点:http://www.chami.com/colorizer/    它能把好几种语言的源代码着色为HTML    (4) Doc-O-Matic    参考站点:http://www.doc-o-matic.com/    Doc-O_Matic为你的C/C++,C++.net,Delphi/Pa......
阅读全文
  • 04月
  • 01日
综合 ⁄ 共 556字 评论关闭
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ] ] 思路:同spiral I class Solution { public: vector<vector<int> > generateMatrix(int n) { vector<vector<int> > a; if (n<=0) { return a; } vector<vector<int> > res(n, vector<int>(n, ......
阅读全文