介绍C++类型转换的用法。1.static_caststatic_cast用与强制隐式类型转换,即隐式类型转换的反方向。static_cast,限制条件少,不进行运行时检验。必须用于当你知道对象的具体类型时,这样检验是不必要的,否则,不安全。example:void func(void *data)...
分类:
编程语言 时间:
2014-08-11 00:17:51
阅读次数:
390
Description
Problem H
Counting Rectangles
Input: Standard Input
Output:Standard Output
Time Limit: 3Seconds
Given n points on the XY plane, count how many regular rectanglesare formed. A...
分类:
其他好文 时间:
2014-08-10 18:49:00
阅读次数:
268
要安装Nginx,至少需要先安装pcre, zlib、ssl1. PCRE(Perl Compatible Regular Expressions)这是一个Perl库,用来实现重写rewrite的目的//cmdyum -y install gcc gcc-c++cd /usr/local/wget ...
分类:
其他好文 时间:
2014-08-09 23:13:39
阅读次数:
790
错误信息如下:标题: Microsoft SQLServer Management Studio Express------------------------------附加数据库 对于 服务器“TITANIC-PC/SQLEXPRESS”失败。 (Microsoft.SqlServer.Expr...
分类:
数据库 时间:
2014-08-09 23:04:39
阅读次数:
398
Palindromes
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when t...
分类:
其他好文 时间:
2014-08-09 21:36:09
阅读次数:
344
{ "fieldName": "photo", "originalFilename": "1395130808991.jpg", "path": "tmpupload/25546-z8u01y.jpg", "headers": { "content-dispos...
分类:
Web程序 时间:
2014-08-09 18:26:28
阅读次数:
336
一 官网下载安装包 :1.http://www.nodejs.org/download/ 选择相应的包进行安装2.安装express :npm install -g express -generator二 测试安装情况在cmd 中输入 node -version 如果显示版本说明安装成功在cmd中输...
分类:
Web程序 时间:
2014-08-09 13:21:17
阅读次数:
375
UVA - 11374
Airport Express
Time Limit:1000MS
Memory Limit:Unknown
64bit IO Format:%lld & %llu
[Submit] [Go Back] [Status]
Description
ProblemD: Ai...
分类:
其他好文 时间:
2014-08-09 11:48:37
阅读次数:
261
扩展欧几里德第二题~
这个题真是搞了好长时间才懂啊~~
题目大意:
有一个数mod ri 等于ai ,求这个数,若求不出来输出“-1”。
解题思路:
对于 x=r1(mod a1)
x=r2(mod a2)
相当于解不定方程:x*a1+y*a2=r2-r1
先求解方程:x*a1+y*a2=r2-r1=gcd(a1,a2)
得出解x,则方程x*...
分类:
其他好文 时间:
2014-08-08 21:27:16
阅读次数:
302
Regular Expression MatchingImplement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more o...
分类:
其他好文 时间:
2014-08-08 17:59:16
阅读次数:
173