#define_CRT_SECURE_NO_WARNINGS#include<stdio.h>intmain(){chara;intnum=0;intspace=0;intother=0;while((a=getchar())!=‘\n‘){if((a>=‘0‘)&&(a<=‘9‘))num++;elseif(a==‘‘)space++;elseother++;}printf("%d%d%d",num,space,other);system("pause");retur..
分类:
其他好文 时间:
2015-11-01 19:37:57
阅读次数:
149
1.文字过长显示省略号(....) white-space:nowrap;overflow:hidden;text-overflow:ellipsis;2.获取当前的ID :$('#').val();3.使用checkbox外面有文字,最好用label包含,这样点击文字也可以选中,用户体验好。 选中
分类:
Web程序 时间:
2015-10-31 20:01:16
阅读次数:
127
Given an integer array of sizen, find all elements that appear more than? n/3 ?times. The algorithm should run in linear time and in O(1) space.求主元素,这...
分类:
其他好文 时间:
2015-10-30 12:14:58
阅读次数:
181
功能:读取输入,打印;如果长度小于MINLEN,那么输出空格。#!/bin/bash# paragraph-space.sh# Insert a blank line between paragraphs of a single-spaced text file.# Usage: $0 <FILEN...
分类:
系统相关 时间:
2015-10-29 23:31:47
阅读次数:
358
1、设置不换行overflow: hidden;white-space: nowrap;overflow:当内容溢出时的状态(visible-不被裁剪,显示在框中;hidden:内容被裁剪,多余内容不可见;scroll:被裁剪,以滚动条形式查看多余内容;auto:同scroll)white-spac...
分类:
Web程序 时间:
2015-10-29 18:21:35
阅读次数:
158
常规css方法——可以实现IE,Safari,chrome,opera浏览器下文字溢出省略号表示这是一段测试文字,主要是用来测试文字溢出后是否会用省略号显示。1 .zxx_text_overflow_1{width:27em; white-space:nowrap; text-overflow:el...
分类:
其他好文 时间:
2015-10-29 16:17:02
阅读次数:
138
Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is great...
分类:
编程语言 时间:
2015-10-29 13:07:11
阅读次数:
205
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:
其他好文 时间:
2015-10-28 20:59:33
阅读次数:
231
span{word-break:normal;width:auto;display:block;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;}white-space -- 通过HTML文档的源代码的排版方式控制页面显示文本的排版...
分类:
其他好文 时间:
2015-10-28 12:39:37
阅读次数:
250
工具栏:ToolBar工具栏项目:Bar Button Item调节按钮位置的固定调节:Fixed Space Bar Button Item调节按钮位置的灵活调节:Flexible Space Bar ButtonToolBar工具栏是视图View的属性,可以在工具栏上添加工具栏按钮Bar But...
分类:
移动开发 时间:
2015-10-28 01:10:19
阅读次数:
262