码迷,mamicode.com
首页 >  
搜索关键字:can    ( 23056个结果
解决MySQL5.6 Warning: Using a password on the command line interface can be insecure
MySQL5.6在使用名文的密码登陆时,会出现:Warning:Usingapasswordonthecommandlineinterfacecanbeinsecure当然这样对于平常的登陆会无所谓,如果在脚本里使用使用的话,就会有问题;解决这种问题的方法是需要在my.cnf中配置即可;在my.cnf中加入如下配置[mysqladump] user=my_..
分类:数据库   时间:2015-12-17 22:37:42    阅读次数:265
spring的JDBC应用mysql数据库的问题
当出现下面错误时:java.sql.SQLException: Can not issue data manipulation statements with executeQuery(). at com.mysql.jdbc.SQLError.createSQLException(SQLErro....
分类:数据库   时间:2015-12-17 22:28:02    阅读次数:204
POJ1745Divisibility(01背包思想)
DivisibilityTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 11151Accepted: 3993DescriptionConsider an arbitrary sequence of integers. One can...
分类:其他好文   时间:2015-12-17 20:47:38    阅读次数:157
Swift - 31 - 常量参数, 变量参数和inout参数
//: Playground - noun: a place where people can playimport UIKit// swift中默认情况下, 传入的参数是不可以修改的, 也就是let类型, 也就是常量参数// 如果想修改这个参数的值, 需要在参数前加"var", 也就是变量参数fu...
分类:编程语言   时间:2015-12-17 16:01:53    阅读次数:155
Swift - 32 - 函数类型
//: Playground - noun: a place where people can playimport UIKitfunc add(a:Int, b:Int) -> Int{ return a + b}// 其中, (Int, Int) -> Int 就是显式的声明函数类型let...
分类:编程语言   时间:2015-12-17 15:58:38    阅读次数:154
Android中Parcelable接口用法
Android中Parcelable接口用法1. Parcelable接口Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parc...
分类:移动开发   时间:2015-12-17 14:22:08    阅读次数:203
Swift - 28 - 内部参数名和外部参数名
//: Playground - noun: a place where people can playimport UIKit// 外部参数的作用是为了让程序员调用代码的时候能清晰的看出所传参数代表的意思// 内部参数指的就是定义函数的时候所设定需要传入的参数func sayHello(nickN...
分类:编程语言   时间:2015-12-17 12:56:44    阅读次数:169
Swift - 27 - 使用元组让函数返回多个值
//: Playground - noun: a place where people can playimport UIKit// 定义一个数组var userScores:[Int]? = [12, 990, 572, 3258, 9999, 1024, 666]userScores = use...
分类:编程语言   时间:2015-12-17 12:27:38    阅读次数:204
Swift - 26 - 函数的基础写法
//: Playground - noun: a place where people can playimport UIKit// 无参无返回// -> Void可以省略不写, 或者写成(), 因为返回值为空本质是一个空的元组func run() -> Void // (){ print("...
分类:编程语言   时间:2015-12-17 10:28:46    阅读次数:172
Leetcode: Add and Search Word - Data structure design
Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word or a regu...
分类:其他好文   时间:2015-12-17 06:58:41    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!