- 博客(25)
- 资源 (12)
- 问答 (1)
- 收藏
- 关注
转载 C#实现MD5加密
实现MD5加密 #广州# OSC源创会第31期(12月27日)开始报名,OSC自曝家丑! 首先,先简单介绍一下MD5 MD5的全称是message-digest algorithm 5(信息-摘要算法,在90年代初由mit laboratory for computer science和rsa data security inc的ronald l. rivest开发出来, 经md
2014-12-22 18:46:17
562
转载 Apache Ant运行时Unable to locate tools.jar解决方法
Apache Ant运行时Unable to locate tools.jar解决方法 分类: 敏捷/持续集成CI 白盒/单元测试 2013-04-22 20:32 4624人阅读 评论(2) 收藏 举报 AntApachetools.jar 下载Apache Ant 一、解压ant安装包在D:\ant下 二、环境变量配置 ANT_HOME D:\ant
2014-11-27 21:20:33
1162
转载 Ubuntu下的PHP开发环境架设
今天重新装了ubuntu那么就吧过程记录下。 打开终端,也就是命令提示符。 我们先来最小化组建安装,按照自己的需求一步一步装其他扩展。命令提示符输入如下命令: 1 sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server 上面的命令是最小化组
2014-11-17 16:55:02
555
转载 Ubuntu 配置 Tomcat
系统环境:Ubuntu 10.10(linux-kernel 2.6.35-22) 安装版本:apache-tomcat-7.0.29.tar.gz(官方网址:Apache Tomcat) 安装步骤: 1、下载 Tomcat 下载 apache-tomcat-7.0.29.tar.gz(官方网址) 2、解压 Tomcat 解压 apache-tomcat-7.0.2
2014-11-17 16:10:41
417
转载 Ubuntu下安装jdk
在安装之前,系统没有任何jdk软件,也就是说在终端执行 java -version 将会输出如下内容: root@haiyang-Aspire:~# java -version 程序 'java' 已包含在下列软件包中: * default-jre * gcj-4.6-jre-headless * openjdk-6-jre-
2014-11-17 15:46:41
391
转载 C++中typename和class的区别
在c++Template中很多地方都用到了typename与class这两个关键字,而且好像可以替换,是不是这两个关键字完全一样呢? 相信学习C++的人对class这个关键字都非常明白,class用于定义类,在模板引入c++后,最初定义模板的方法为: template...... 在 这里class关键字表明T是一个类型,后来为了避免class在这两个地方的使用可能给人带来混淆,所以引入了typ
2014-11-13 14:25:24
361
转载 stream_iterator和ostream_iterator学习体会
istream_iterator 在头文件的定义中 定义istream_iterator变量的方法为 istream_iterator in(strm); (其中T指明此istream_iterator的输入类型 , strm为istream_iterator指向的流) 提供了输入操作符(>>)和 输出操作符 ( istream &operator >> (istream &
2014-11-05 23:22:12
436
原创 10月30日面试题——cmd行下输出
#include int main(int argc, char* argv[]) { printf("%d\n\n",argc); while( --argc > 0) { printf("%s\t",*++argv); } }
2014-10-30 16:29:56
577
原创 10月30日面试题——输出为何是-1呢
#include int main() { struct byte{ int one:1; }; struct byte var = { 1 }; printf("%d\n", var.one); }
2014-10-30 16:25:08
562
原创 逆序显示字符串函数
#include //逆序显示字符串函数 void display_backward(char* str) { if(*str) { display_backward(str+1); putchar(*str); } } int main() { display_backward("ABCDEFG
2014-10-19 13:24:39
566
转载 PEP 0263 -- Defining Python Source Code Encodings
PEP: 0263 Title: Defining Python Source Code Encodings Version: 982904d11574 Last-Modified: 2009-06-04 19:44:37 +0000 (Thu, 04 Jun 2009) Author: Marc-André Lemburg , Mart
2014-10-15 11:36:48
1252
转载 设置python的默认编码为utf8
设置python的默认编码为utf8(这部分转自南瓜小米粥的博客): 这是Python的编码问题,设置python的默认编码为utf8 python安装目录:/etc/python2.x/sitecustomize.py 1 import sys 2 reload(sys)
2014-10-15 11:32:05
479
原创 reinterpret_cast用法详述
#include using namespace std; int main() { char charArray[5] = {'H','e','l','l','o'}; char *charPtr = charArray; cout for(int i = 0; i { cout(charPtr)
2014-10-13 15:50:48
1832
1
转载 VS2010的快捷键;VS2012变化的快捷键
VS2010的快捷键;VS2012变化的快捷键 分类: ASP.NET 2011-04-13 12:16 41440人阅读 评论(9) 收藏 举报 2010文档delete输入法浏览器 注释::VS2010是(Ctrl+E,C),VS2012是(Ctrl+K, Ctrl+C),实际操作,按住Ctrl键不放,先按K键,再按C键。相当于Ctrl+K加 Ctrl+
2014-10-08 10:01:23
340
转载 C++编程思想 require.h文件 程序代码
#ifndef REQUIRE_H #define REQUIRE_H #include #include #include #include inline void require(bool requirement, const std::string& msg = "Requirement failed"){ usi
2014-10-05 22:54:51
1598
转载 C++中的位拷贝和值拷贝
C++中的位拷贝和值拷贝 原文:http://blog.youkuaiyun.com/liam1122/article/details/1966617 为了便于说明我们以String类为例: 首先定义String类,而并不实现其成员函数。 Class String { public: String(const char *ch=NULL);//默认构造
2014-10-03 15:21:57
463
原创 C++ primer 第四版 习题3.13
#include #include #include #include #include #include using namespace std; int main() { vector ivec; cout int num,first,second; while(cin>>num) ivec.push_back(nu
2014-09-27 17:32:26
523
原创 C++primer 第四版 Page83 习题3.14
#include #include #include #include #include #include using namespace std; int main() { vector svec; cout string str; while(cin>>str) svec.push_back(str); v
2014-09-27 17:18:31
586
转载 c++字符串大小写转换
由于ANSI和Unicode在函数名上有差别,故都列出来,不过本人以Unicode为主。 【1.用C语言标准库函数toupper,tolower】 头文件:cctype c下面:ctype.h 转大写 Ansi版: int toupper(int c); Unicode版:int towupper(wint_t c); MSDN: toupper, _toupper, tow
2014-09-27 17:04:15
618
原创 C++ primer 第四版 习题4.34.4.35
#include #include #include #include using namespace std; int main() { vector svec; cout string str; while(cin>>str) svec.push_back(str); char **parr = n
2014-09-27 16:07:15
621
原创 error C2679
#include #include #include #include using namespace std; int main() { const string str1 = "Mary and Linda"; const string str2 = " are friends."; string str = str1;
2014-09-27 10:37:35
2017
原创 C语言 辗转相除法求最大公约数
#include using namespace std; //z辗转相除法,求最大公约数 int gcd(int m,int n) { if(m%n==0) return n; return gcd(n,m%n); } //主函数入口 void ma
2011-08-16 19:59:20
866
原创 java辗转相除法求最大公约数
import java.util.*; public class javatest06 { public static void main(String[] args) { Scanner reader = new Scanner(System.in); Sys
2011-08-16 19:31:36
1288
原创 计算器程序代码(C语言)
#include #include #include #include #define N 100 double numStack[N]={0};//操作数栈 int numTop; char opStack[N];//运算符栈
2011-08-09 20:44:56
8615
原创 换码序列个别演示
换码序列 #include void main() { printf("abcdefghijklmn"); printf("\b123\\"); printf("\"\n"); } /* *回退符:\b运行程序会发现将字幕n删除掉了 *表示双引号
2011-08-09 20:41:41
490
关于C++数组知识,在不同的平台上长度不一致,求解原因
2014-09-24
TA创建的收藏夹 TA关注的收藏夹
TA关注的人