- 浏览: 338707 次
- 性别:
- 来自: 郑州
最新评论
-
Aceslup:
很感谢分享。清晰的思路。
linux安装php,gd支持jpeg -
u011467537:
最后那个问题解决了么?
android,view的执行过程onDraw、onSizeChanged,onFinishInflate -
kerme:
写的很好,但是查出来的unicode格式的前两个字节输出是-1 ...
字符编码原理 ASCII,Unicode和UTF-8 -
ling凌yue月:
Errorize 写道 你是不是搞错了?Java代码是这样子的 ...
数组转换为树 -
Errorize:
你是不是搞错了?Java代码是这样子的么?
数组转换为树
文章列表
连接数据库程序:
public class CreateODBC {
public static Connection getconn(){
Connection conn = null;
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/db?&characterEncoding=UTF-8";
String user = "root";
String password = ...
function GetProducts($catagorys, $includeSubcatagory, $brandname='', $specialoffer, $pagesize, $pageindex, $orderby){
$where = array(1);
foreach($catagorys as $k=>$v){
$catIDsql='SELECT cat_id FROM sdb_goods_cat WHERE cat_name=\''.$v.'\' ';
$cat_rs[]=$this->db->selectrow($cat ...
m个人站成一个圈,某个人开始喊1,下一个喊2……依次,规定喊n的人被淘汰,被淘汰的下一个重新开始喊,请问最后谁留下?
public static void main(String[] args) {
String[] a={"1","2","3","4","5","6","7","8"};
System.out.print(yy(a,3));
}
static String yy ...
<?php
function sendpost($url, $data){
//先解析url
$url = parse_url($url);
$url_port = !isset($url['port']) ? (($url['scheme'] == 'http') ? 80 : 443) : $url['port'];
if (!$url)
{
return "couldn't parse url";
}
//将参数拼成URL key1=value1&key2=value2 的形式
$encoded = " ...
Java查询MySQL数据库的字段及类型
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;
import java.util.Hashtable;
public class GetDBFiled {
public static void conn() {
String driver = "com.mysql.j ...
第一种:
<script language="javascript" type="text/javascript">
window.location.href="login.jsp?backurl="+window.location.href;
</script>
第二种:
<script language="javascript">
window.history.back(-1);
</scrip ...
1、数据库,这里是MySQL数据库
DROP TABLE IF EXISTS `paging`;
CREATE TABLE paging(
`id` int(3) NOT NULL auto_increment,
`name` varchar(30) ,
primary KEY id(`id`)
);
INSERT INTO paging(name) values('jack01');
INSERT INTO paging(name) values('jack02');
INSERT INTO paging(name) values('jack03');
IN ...
方法一、
常规方法:
<table width="400" align="center" bordercolor='black' border='1' style="border-collapse: collapse">
<tr>
<td colspan=2>a </td>
</tr>
<tr>
<td rowspan=2>c </td>
< ...
/**
*
* @param m 对数的底数
* @param n 对数的幂
* @return 以m为底n的对数 logm(n)
*
*/
public static double log(int m,int n){
double reslut=0.0;
reslut=Math.log(n)/Math.log(m);
return reslut;
}
try{
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Please input a number:");
String str=reader.readLine(); //获取字符串
str = str.trim();
String[] arr = str.split("\\s+");
for(int i =0;i<ar ...