码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
freemarker报错之八
1、错误描写叙述freemarker.core.ParseException: Encountered "string" at line 21, column 21 in type.ftl.Was expecting one of: "}" ... "." ... "[" ... ...
分类:其他好文   时间:2015-05-12 12:55:34    阅读次数:99
typeof
Thetypeofoperatorreturns a string indicating the type of the unevaluated operand.SyntaxThetypeofoperator is followed by its operand:typeof operandPara...
分类:其他好文   时间:2015-05-12 12:54:52    阅读次数:134
PHP开发绝对不能违背的安全铁则
PHP开发绝对不能违背的安全铁则[来源]达内[编辑]达内[时间]2012-12-27使用 mysql_real_escape_string() 作为用户输入的包装器,就可以避免用户输入中的任何恶意 SQL 注入。如果用户尝试通过 SQL 注入传递畸形的密码 作为PHP程序员,特别是新手,对于互联网....
分类:Web程序   时间:2015-05-12 12:54:52    阅读次数:169
1.C# -- Switch 用法
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication1 { classProgram { staticvoidMain(string[]args) { conststringmyName="karli"; conststringsexyName="angelina"; conststrin..
分类:Windows程序   时间:2015-05-12 11:41:45    阅读次数:177
2. C# -- do{...} while();while(){...};for()的用法
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication1 { classProgram { staticvoidMain(string[]args) { Console.WriteLine("Outputthedo{...}while()result"); inti=1; do { Cons..
分类:Windows程序   时间:2015-05-12 11:40:03    阅读次数:128
Logger LOG = LoggerFactory.getLogger()
由Logger的名称可以知道这句的意思是用Logger工厂获取Logger实例,但是不明白其中的原理,看了看源码: LoggerFactory中的getLogger方法,返回一个以name命名的静态绑定的实例,而这个name一般以Logger实例所在的类命名,如通过类名.Class.getName()获取。 public static Logger getLogger(String nam...
分类:其他好文   时间:2015-05-12 11:39:24    阅读次数:172
3. C# break,continue,死循环
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication1 { classProgram { staticvoidMain(string[]args) { Console.WriteLine("Outputdo{..break;}while()result"); inti=1; do { if..
分类:Windows程序   时间:2015-05-12 11:38:31    阅读次数:159
递归实现字符串字符反转
题目: 编写一个函数reverse_string(char * string)(递归实现) 实现:将参数字符串中的字符反向排列。 要求:不能使用C函数库中的字符串操作函数。 思路分析:以ABCDEFGH为例,每次将字符串的首字符和尾字符进行交换。 1、将A与I交换,此时字符串变为IBCDEFGA,而递归的字符串变成了BCDEFG; 2、将B和G交换,此时字符串变成IGCDEFBA,而递归...
分类:其他好文   时间:2015-05-12 11:32:08    阅读次数:162
使用Socket模拟一个简单的Webservice调用
webservice是对socket的一个封装,让远程调用调用变得更加简单,那么使用socket究竟有多么麻烦呢?来看看。 做一个简单的天气查询: 服务端:public class SocketServer { public static void main(String[] args) { DataInputStream dataInputStream = null;...
分类:Web程序   时间:2015-05-12 11:28:04    阅读次数:138
MEF学习
简单的例子public interface ILogger{ void WriteLog(string message);} [Export(typeof(ILogger))]public class TXTLogger : ILogger{ public void WriteLo...
分类:其他好文   时间:2015-05-12 11:12:14    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!