package Test;import demo.Student;public class TestStudent { public static void main(String[] args) { Student str1=new Student("李四","31岁"); S...
分类:
其他好文 时间:
2015-06-04 13:39:21
阅读次数:
82
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such po...
分类:
编程语言 时间:
2015-06-04 13:34:09
阅读次数:
110
for循环里面for( 1;2;3){ 1和2会先执行一次; 3要到开始下次循环之前才执行;}package com.czj;public class TestForLoop { public static void main(String[] args) { int...
分类:
编程语言 时间:
2015-06-04 13:26:33
阅读次数:
116
前台代码: 拍照 JS代码: 后台代码:public void ProcessRequest (HttpContext context) { string img;//接收经过base64编 之后的字符串 co...
分类:
Web程序 时间:
2015-06-04 13:23:21
阅读次数:
120
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int Str2Int(const string & s, int st, int ed)
{
int n = 0;
for (int i = st; i < ed; +...
分类:
编程语言 时间:
2015-06-04 12:03:36
阅读次数:
152
Java实现网络监听
import java.net.*;
import java.io.*;
public class tcpServer {
public static void main(String args[]) {
int port;
ServerSocket server_socket;
BufferedReader input...
分类:
编程语言 时间:
2015-06-04 11:58:40
阅读次数:
175
在python中,面向对象编程主要有两个主题,就是类和类实例。
1、类
新式类——
class ClassName(bases):
'ClassName class doc string'
class_suite
经典类——
class ClassName:
'ClassName class doc string'
class_suite
关键字是class,紧接着是一个类...
分类:
编程语言 时间:
2015-06-04 11:47:38
阅读次数:
321
加密: 调用时: Encrypt_DES16(“2AF349243535BCD3”, "1111111111111111");
public static string Encrypt_DES16(string str_in_data, string str_DES_KEY) //数据为十六进制
{
try
{
...
闲来无事,自己想起上家公司的笔试题就会考冒泡排序,so,自己就试试写了下,分享下了。实现: 1 package myTempTest; 2 3 public class maopao { 4 5 public static void main(String[] args) { 6 ...
分类:
编程语言 时间:
2015-06-04 11:46:13
阅读次数:
132
$.ajax()方法详解1.url:要求为String类型的参数,(默认为当前页地址)发送请求的地址。2.type:要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。3.timeout:要求为Nu...
分类:
Web程序 时间:
2015-06-04 11:38:43
阅读次数:
106