指针数组 && 数组指针
char (*ptr)[5]; //定义一个指向数组指针ptr,指向包含5个char类型的数组
char *a[5]; //定义一个指针数组a,包含5个char*类型指针
#include
int main(void)
{
char *a[5]={"red","white","blue","dark","green"};
pri...
分类:
编程语言 时间:
2014-08-19 12:55:44
阅读次数:
230
自动换行问题,正常字符的换行是比较合理的,而连续的数字和英文字符常常将容器撑大,挺让人头疼,下面介绍的是CSS如何实现换行的方法 对于div,p等块级元素 正常文字的换行(亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义的宽度之后自动换行html正常文字的换行(亚洲文...
分类:
Web程序 时间:
2014-08-18 22:01:52
阅读次数:
216
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers ...
分类:
其他好文 时间:
2014-08-16 12:35:30
阅读次数:
233
WPF中改变选中行的颜色是很简单的,就是用触发器:比如:以DataGrid为例: DataGrid.RowStyle Style TargetType= DataGridRow SetterProperty= Background Value= White / Style .Triggers Tri...
分类:
其他好文 时间:
2014-08-15 12:11:28
阅读次数:
232
一些总结出来的Android快速开发框架,全部都是开源框架,附带项目地址,是开发学习的绝佳资料。
thinkAndroid项目
github地址:https://github.com/white-cat/ThinkAndroid
功能:ThinkAndroid是一个免费的开源的、简易的、遵循Apache2开源协议发布的Android开发框架,其开发宗旨是简单、快速的进行 Androi...
分类:
移动开发 时间:
2014-08-12 13:33:24
阅读次数:
320
添加产品属性信息 序号 属性英文名称(必填,如:white或XL) 属性中文名称(可选,如:白色或大号) ...
分类:
其他好文 时间:
2014-08-12 03:05:13
阅读次数:
338
Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the or...
分类:
其他好文 时间:
2014-08-12 00:09:03
阅读次数:
154
强制换行 1、word-break: break-all; 只对英文起作用,以字母作为换行依据。 2、word-wrap: break-word; 只对英文起作用,以单词作为换行依据。 3、white-space: pre-wrap; 只对中文起作用,强制换行。禁止换行 ...
分类:
Web程序 时间:
2014-08-09 18:09:38
阅读次数:
329
1.设置TextView的文本颜色123TextView tv;...tv.setTextColor(R.color.white);其实这样设置的颜色是 R.color.white的资源ID值所代表的颜色值,而不是资源color下的white颜色值:正确的做法如下:1tv.setTextColor(...
分类:
移动开发 时间:
2014-08-09 15:44:38
阅读次数:
334
Fighting the Landlords
大意:
斗地主。。。。 分别给出两把手牌,肯定都合法。每张牌大小顺序是Y (i.e. colored Joker) > X (i.e. Black & White Joker) > 2 > A (Ace) > K (King) > Q (Queen) > J (Jack) > T (10) > 9 > 8 > 7 > 6 >...
分类:
其他好文 时间:
2014-08-07 23:15:45
阅读次数:
348