码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
备忘“与”、“非”、“或”、“异或” 运算
位运算符主要针对二进制,它包括了:“与”、“非”、“或”、“异或”。从表面上看似乎有点像逻辑运算符,但逻辑运算符是针对两个关系运算符来进行逻辑运算,而位运算符主要针对两个二进制数的位进行逻辑运算。下面详细介绍每个位运算符。1.与运算符与运算符用符号“&”表示,其使用规律如下:两个操作数中位都为1,结...
分类:其他好文   时间:2014-06-09 20:01:30    阅读次数:187
输出超过一半的数
//输出超过一半的数,如果没有则输出-1。通过编译,bymyselfimport java.util.*;public class MoreThanHalf{ public static void main(String args[]){ int array[]={3,4,5,3...
分类:其他好文   时间:2014-06-09 19:32:47    阅读次数:254
GET和POST的区别以及何时使用post和get方法
GET和POST的区别 (1)get是从服务器上获取数据,post是向服务器传送数据。 (2)get是将参数数据加到URL中,用户可以看到。post是将内容放置在http请求信息体内传送,用户看不到这个过程。 (3)对于get方法,服务器端是用Request.QueryString获取变量的值,对于...
分类:其他好文   时间:2014-06-09 19:30:43    阅读次数:200
CSVHelper 导出CSV 格式
public class CSVHelper { System.Windows.Forms.SaveFileDialog saveFileDialog1;//保存 private string header = string.Empty;//标题 //...
分类:其他好文   时间:2014-06-09 19:17:52    阅读次数:322
[leetcode]Scramble String @ Python
原题地址:https://oj.leetcode.com/problems/scramble-string/题意:Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty su...
分类:编程语言   时间:2014-06-09 19:02:59    阅读次数:197
get传值
发送页:1 2 3 0084 5 6 发送页后台CS代码:1 protected void Button1_Click(object sender, EventArgs e)2 {3 string name = TextBox1.Text;4 Response.Redirect(st...
分类:其他好文   时间:2014-06-09 18:48:32    阅读次数:211
Third
php常量在php中使用define(string constant_name,mixed value ,case_sensitive=true)来定义常量;define()函数参数说明:参数说明constant_name必选参数。常量名称,即标识符value必选参数。常量的值。case_sensi...
分类:其他好文   时间:2014-06-09 18:35:14    阅读次数:172
c# XML序列化与反序列化 属性字段标识
序列化对象 public class People { [XmlAttribute("NAME")] public string Name { set; get; } [XmlAttribute("AGE")] pub...
分类:其他好文   时间:2014-06-09 18:27:28    阅读次数:344
LeetCode:Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2014-06-09 17:49:34    阅读次数:240
std::function赋值的几种方法
定义:#include std::function myPrintFunction;函数指针void directPrint(const QString &msg){ qDebug()<<"direct print:"<<msg;}myPrintFunction = directPrint;lamb...
分类:其他好文   时间:2014-06-09 17:41:16    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!