2014年3月2日

ubuntu 安装 boost

摘要: 1、tar -zxvf boost_1_43_0.tar.gz2、cd boost_1_43_0,执行:sudo ./bootstrap.shsudo ./bjam install检验安装成功否:在linux下任意目录下创建test.cpp#include#includeint main(){ int a = boost::lexical_cast("123456"); std::cout << a <<std::endl; return 0;} 阅读全文

posted @ 2014-03-02 17:37 雪 狼 阅读(333) 评论(0) 推荐(0)

2014年2月22日

C#-提取网页中的超链接

摘要: 转载:http://www.wzsky.net/html/Program/net/26849.htmlusing System;using System.Xml;using System.Text;using System.Net;using System.IO;using System.Collections;using System.Text.RegularExpressions; namespace test{ class Program { static void Main(string[] args) { string s... 阅读全文

posted @ 2014-02-22 16:29 雪 狼 阅读(782) 评论(0) 推荐(0)

2013年10月16日

数组地址详解

摘要: #include using namespace std;void main(){ int a[2][3] = {1,2,4, 6,8,10}; cout<<"a: "<<hex<<a<<endl; cout<<"&a[0]: "<<hex<<&a[0]<<endl; cout<<"&a[1]: "<<hex<<&a[1]<<endl; cout<< 阅读全文

posted @ 2013-10-16 08:44 雪 狼 阅读(318) 评论(0) 推荐(0)

2013年10月8日

约瑟夫环-源码

摘要: #include using namespace std;typedef struct Node{ int num,pwd;//num为人员编号,pwd为人眼所处位置的值 struct Node *next;}LNode, *LinkList;void main(){ int i=1,m,n,j;//m为报数上限值,n为人数,j为输入的密码; cout>m; cout>n; LinkList head,p,pt; while(i>j; p->num=i; p->pwd=j; i++; } else { p->next=pt; ... 阅读全文

posted @ 2013-10-08 12:52 雪 狼 阅读(229) 评论(0) 推荐(0)

2013年4月27日

win7 & centos设置启动顺序

摘要: win7和centos双系统启动顺序设置 阅读全文

posted @ 2013-04-27 21:11 雪 狼 阅读(985) 评论(0) 推荐(0)

2013年4月1日

符号匹配

摘要: bool isbalance(const string &str){ string::size_type len = str.size(); stack<char> Mystack; for(string::size_type i = 0; i < len ; ++ i) { /*first selection*/ if(str[i] == '[' || str[i] == '{' || str[i] == '(' || str[i] == '<') { Mystack.push(st... 阅读全文

posted @ 2013-04-01 17:30 雪 狼 阅读(242) 评论(0) 推荐(0)

中缀转后缀

摘要: 方法一先前的东西都给忘了,特整理一下作为笔记/***************************************** * 实现表达式中缀到表达式后缀的转换 *****************************************/bool midtolast(string &src, string &dst){ string::size_type len = src.size(); /*用来保存栈中弹出的对象*/ char temp = '\0'; stack<char> Mystack; for(string::si... 阅读全文

posted @ 2013-04-01 17:27 雪 狼 阅读(243) 评论(0) 推荐(0)

2013年3月26日

oracle用户创建及权限设置

摘要: oracle用户创建及权限设置权限: create session create table unlimited tablespace connect resource dba 例: #sqlplus /nolog SQL> conn / as sysdba; SQL>create user username identified by password SQL> grant dba to username; SQL> conn username/password SQL> select * from user_sys_privs; 我们将从创建Oracle用户权 阅读全文

posted @ 2013-03-26 16:07 雪 狼 阅读(235) 评论(0) 推荐(0)

2012年8月7日

hibernate是如何实现ORM的?

摘要: 如题1.什么是ORM ORM的全称是Object Relational Mapping,即对象关系映射。它的实现思想就是将关系数据库中表的数据映射成为对象,以对象的形式展现,这样开发人员就可以把对数据库的操作转化为对这些对象的操作。因此它的目的是为了方便开发人员以面向对象的思想来实现对数据库的操作。 2.什么是Hibernate 对于Hibernate的称呼有很多,比如工具、技术、框架以及解决方案等,这些都可以,重要的是大家要知道它的作用。在这里我习惯性称它为框架,它是一种能实现ORM的框架。能实现ORM这个功能的框架有很多,Hibernate可以说是这些框架中最流行、最受开发者关注的,甚至连 阅读全文

posted @ 2012-08-07 11:00 雪 狼 阅读(346) 评论(0) 推荐(0)

2012年5月10日

.net4.0注册到IIS ,重新注册IIS ,iis注册

摘要: IIS和.net fromwork 按反了!! 阅读全文

posted @ 2012-05-10 15:14 雪 狼 阅读(19687) 评论(0) 推荐(0)

导航