码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
Show a heart shaped
Windows Form application version:private void Form1_Load(object sender, EventArgs e) { this.BackColor = Color.Red; System.Drawing.Drawing2D.GraphicsPa...
分类:其他好文   时间:2014-06-06 22:46:00    阅读次数:208
javaFile循环列出指定目录下的所有文件(源代码)
package javatest.basic22;import java.io.File;import java.io.IOException;public class FileTest { public void getFileName(File file){ //判断是否是文件 ...
分类:编程语言   时间:2014-06-06 22:44:05    阅读次数:271
这是一个忧伤的故事
关于一个ATM的简单程序......算是我写的第一个最长的程序吧,还是值得纪念的,虽然不怎么完美,功能也不是很齐全,但是第一次都是值得留恋的。#include #includeint main(void){int D,W,Z;int Y=10000,Y1,Y2;int Account=622110,...
分类:其他好文   时间:2014-06-04 14:50:43    阅读次数:251
4个线程例子,2个线程对同一数字加法运算另外2个线程对同一共享数字减法运算
package com.saic.grape.controller; public class Data { private int j=0; /**  * 加法  */ public synchronized void inc() {     j++;     System.out.println("inc 加法运算>>"+j); } /**  * 减法  */...
分类:编程语言   时间:2014-06-04 14:03:01    阅读次数:356
二叉树三种遍历(递归以及非递归实现)
package com.shiyeqiang.tree; import java.util.Stack; public class BiTree { public static void main(String[] args) { // 首先构造叶子节点 BiTree leafA1 = new BiTree(4); BiTree leafA2 = new BiTree(5);...
分类:其他好文   时间:2014-06-04 13:54:31    阅读次数:374
在.NET中如何取得代码行数
文章目的介绍在.NET中取得代码行数的方法代码[STAThread] static void Main(string[] args) { ReportError("Yay!"); } static private void ReportError(string Message) { StackFrame CallStack = new StackFrame(1, true);...
分类:Web程序   时间:2014-06-04 13:44:20    阅读次数:336
控制器介绍
新建立MVC3项目,名为12-1ControllersAndActions,使用空模板。Global.asax中默认的路由定义为: public static void RegisterRoutes(RouteCollection routes) { ...
分类:其他好文   时间:2014-06-03 15:40:46    阅读次数:264
2014-4-25 运行号:837134 素数求和
#include #include #include #include #include #include #include using namespace std;bool pre_arry[1100];void pre_cnt() //素数筛{ memset(pre_arry,1,sizeof....
分类:其他好文   时间:2014-06-03 14:57:38    阅读次数:259
通过直接预分区的方式建表
/*通过直接预分区的方式建表*/private static void printTableRegion(String tableName)throws IOException{ System.out.println("Prtint region of table:"+tableName);/...
分类:其他好文   时间:2014-06-03 14:51:05    阅读次数:207
与webView进行交互,webView小记
本文转载至http://www.verydemo.com/demo_c101_i46895.html一、与webView进行交互,调用web页面中的需要传参的函数时,参数需要带单引号,或者双引号(双引号需要进行转义在转义字符前加\),在传递json字符串时不需要加单引号或双引号。1-(void)we...
分类:Web程序   时间:2014-06-03 14:40:08    阅读次数:649
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!