#import @interface Car : NSObject{ @public int
speed; int wheels;}// oc方法必须是-开头// oc方法中所有的数据类型必须得用括号括起来//
oc方法中的()就是用来扩住数据类型的-(void)run;@end@implement...
分类:
其他好文 时间:
2014-05-08 12:25:41
阅读次数:
267
asp.net下载文件几种方式 protected void Button1_Click(object
sender, EventArgs e) { /*
微软为Response对象提供了一个新的方法TransmitFile来解决使用Response.BinaryWrite 下载超过400m...
分类:
Web程序 时间:
2014-05-08 11:54:24
阅读次数:
498
1 import java.util.Scanner; 2 3 public class T003 {
4 5 public static void main(String[] args) { 6 Scanner in = new
Scanner(System.in);...
分类:
编程语言 时间:
2014-05-08 11:24:26
阅读次数:
346
1 import java.util.Hashtable; 2 3 public class T035
{ 4 public static void main(String[] args) { 5
FirstNotRepeatingChar("abaccdeff"); 6...
分类:
编程语言 时间:
2014-05-08 10:38:54
阅读次数:
346
直接代码:代码段1: 1 #include 2 #include 3 #include 4 5
class some_class 6 { 7 public: 8 typedef void result_type; 9 void
print_string(const ...
分类:
编程语言 时间:
2014-05-08 09:49:53
阅读次数:
368
1 import java.util.Stack; 2 public class T005 { 3
public static void main(String[] args){ 4 Node n1 = new Node(1); 5 Node n2 =
ne...
分类:
编程语言 时间:
2014-05-08 05:19:42
阅读次数:
402
package org.mark.file;
import java.io.File;
/**
* File类的基本操作之读出全部文件夹路径
* 如果给定一个目录,要求将此目录中的全部文件都列出来
* 使用递归
*/
public class TestChare {
/**
* @param args
*/
public static void main(String[]...
分类:
其他好文 时间:
2014-05-08 03:53:29
阅读次数:
259
1.创建新的字符串 1 public class T004 { 2 public static
void main(String[] args){ 3 System.out.println(replaceBlank("we are happy")); 4
} 5 ...
分类:
编程语言 时间:
2014-05-08 01:08:18
阅读次数:
364
后台: protected void ibtnRegedit_Click(object sender,
ImageClickEventArgs e) { if (!Page.IsValid || !CheckVCode()) retu...
分类:
其他好文 时间:
2014-05-08 00:44:32
阅读次数:
281
今天做了一下老师给的第一套题,第一题是判断一个字符串是否在另一个字符串中:做了一下,感觉有好多种写法,java中的类真的好多啊,要掌握好一些基本类的用法:
package com.exam.e120;
public class java1 {
public static void main(String[]args){
String str1,str2;
str1="I am Tom...
分类:
编程语言 时间:
2014-05-08 00:02:39
阅读次数:
423