码迷,mamicode.com
首页 >  
搜索关键字:小代码 new image    ( 122652个结果
Mongo:将查询结果转换为自定义类
1、自定义类 public class MyClass { public string Name { get; set; } public int Corners { get; set; } }2、查询数据并转换 var config = new M...
分类:其他好文   时间:2014-05-14 02:21:23    阅读次数:253
读取文件
public String BufferedReaderDemo(String path) throws IOException...{File file=new File(path);if(!file.exists()||file.isDirectory())throw new FileNotFo...
分类:其他好文   时间:2014-05-14 02:16:11    阅读次数:199
css study
html{filter:expression(document.execCommand("BackgroundImageCache",false,true))_background-image:url(about:blank);_background-attachment:fixed}body,di...
分类:Web程序   时间:2014-05-14 02:10:02    阅读次数:281
C++常用小工具……
1. 批量改变文件内容://批量改变输出文件内容#include #include #include using namespace std;int main(){ ifstream input("D:pos_img.txt"); ofstream output("D:pos_image...
分类:编程语言   时间:2014-05-13 22:29:37    阅读次数:458
Java中时间或日期的处理
一、日期转换为字符串1.日期以特定的格式输出: // 创建日期并转换为yyyy-mm-dd格式 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String datestr = sdf.format(new Date()...
分类:编程语言   时间:2014-05-13 20:58:54    阅读次数:261
安卓小常识(2)
1)创建一个android项目填写项目信息2)创建一个新Activity右键点击Eclipse左边(默认)你要加入Activity的包,比如,我的包是com.INdroid.layout。然后选New->Class,输入类名后(注意首字母大写),在Superclass的Browse那里点击。最后在C...
分类:移动开发   时间:2014-05-13 20:56:51    阅读次数:473
读取以key=value形式存储的txt文件
代码片段(假设只有3个key=value):public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader( new In...
分类:其他好文   时间:2014-05-13 19:48:10    阅读次数:485
java 语言实现冒泡排序
public class BubbleSort{ public static void main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6}; System.out.println("before sorting ,t.....
分类:编程语言   时间:2014-05-13 19:45:04    阅读次数:366
简便计算器
string str=textBox1.Text; object bs = new DataTable().Compute(str, null); textBox1.Text =bs.ToString();
分类:其他好文   时间:2014-05-13 19:37:53    阅读次数:296
java web 程序---注册页面核心代码哈希Map
收获:在运行程序的时候,错误出现。主要是map没有进行判断,是否为空,如果为空,则创建一个对象new HashMap();然后就注意细节,String name=request.getParameter("name"); String pass=request.getParameter("pa...
分类:编程语言   时间:2014-05-13 17:33:42    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!