码迷,mamicode.com
首页 >  
搜索关键字:names    ( 11603个结果
POJ2337 Catenyms
题意:给出一组单词,如果两个单词,一个单词的头和另一个单词的尾相同,则可以相连,例如abce, efdg,可以相连,问这组单词能否排成一排,如果可以求出字典序自小的那个。#include #include #include #include #include #include using names...
分类:其他好文   时间:2015-09-05 12:29:55    阅读次数:148
C++ generic tools -- from C++ Standard Library
今晚学了一下C++标准程序库, 来简单回顾和总结一下。 1.pair 结构体// defined in , in the std namespacenamespace std{ template struct pair{ // type names for the...
分类:编程语言   时间:2015-09-04 23:51:48    阅读次数:195
利用PHP实现MySQL表数据的简单分页
PHP实现MySQL表数据的简单分页 <?php? $conn=mysql_connect("127.0.0.1","root",‘123456‘)?or?die("数据库连接失败"); mysql_select_db("ym"); mysql_query("set?names?utf8"); //获取数据的行数 $all=mysql...
分类:数据库   时间:2015-09-04 18:43:42    阅读次数:172
python
1 def f(x): 2 return x*x 3 print map(f,[1,2,3,4,5]) 4 5 [1, 4, 9, 16, 25] 6 7 def format_names(s): 8 return s[0].upper()+s[1:].lower() 9 pr...
分类:编程语言   时间:2015-09-03 21:33:13    阅读次数:180
AngularJS小示例<2>
<ulng-init="names=[ {name:‘乔乐‘,age:‘25‘}, {name:‘周迅‘,age:‘40‘}, {name:‘魏瑞‘,age:‘25‘}, {name:‘展昭‘,age:‘98‘} ]"> <ling-repeat="infoinnames">{{$index+1}}、今年{{info.name}}已经{{info.age}}岁了!{{$first}}-{{$middle}}-{{$last}}-{{$even}}-..
分类:Web程序   时间:2015-09-01 18:34:04    阅读次数:199
uva 11595 - Crossing Streets EXTREME(切割多边形)
题目链接:uva 11595 - Crossing Streets EXTREME 对初始平面进行切割,得到所有平面,然后处理出所有边,有公共边的两个平面之间可以到达,对于城市的权值可以加到点上,进出各加一次即可。 #include #include #include #include #include #include #include using names...
分类:其他好文   时间:2015-08-31 23:43:05    阅读次数:199
php中pdo例子
下面是从其他博客看到的代码setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $dbh->exec('set names utf8'); /*添加*///$sql = "INSERT INTO `user` SET `login`=:l....
分类:Web程序   时间:2015-08-30 06:29:23    阅读次数:131
MySQL开发规范与使用技巧总结
1.命名规范1.库名、表名、字段名必须使用小写字母,并采用下划线分割。 a)MySQL有配置参数lower_case_table_names,不可动态更改,linux系统默认为 0,即库表名以实际情况存储,大小写敏感。如果是1,以小写存储,大小写不敏感。如果是2,以实际情况存储,但以小写比较。 b)如果大小写混合使用,可能存在abc,Abc,ABC等多个表共存,容易导致混乱。 c)字段名显示区...
分类:数据库   时间:2015-08-29 14:04:03    阅读次数:218
angular Multiple Named Views记录
Notice that the view names are now specified as absolute names, as opposed to the relative name. It is targeting the ‘filters‘, ‘tabledata‘, and ‘graph‘ views located in the root unnamed template. ...
分类:其他好文   时间:2015-08-29 11:18:56    阅读次数:194
Echarts-axislabel文字过长导致显示不全或重叠
先看两张图按目前情况,官方并为对axislabel的高度或者宽度做调整。所以解决方案只能从其他方案下手解决方案有几种第一种为上图解决方案设置grid属性定义图的大小来释放空间,使得axislabel有足够的空间/** 参数传值全部为数组 * @param names x轴值 * @param xyc...
分类:其他好文   时间:2015-08-27 11:02:01    阅读次数:113891
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!