爱玺玺

爱玺玺的生活日记本。wx:lb87626

java 对象包装类例子

 public class TestInteger{
 public static void main(String[] args){
  int w = new Integer(args[0]).intValue();
  int h = Integer.parseInt(args[1]);
  for(int i=0;i<h;i++){
  

java使用ArrayList实现加法累加

 import java.io.IOException;//调用输入输出包
import java.util.*;//调用包
public class TestConnection{
 public static void main(String[] args){
   int b=0; //定义并初始化全局变量
   ArrayList v=new ArrayList();//创

java vector存储对象实现输入数字累加功能

import java.io.IOException;//调用输入输出包
import java.util.*;//调用包
public class TestConnection{
 public static void main(String[] args){
   int b=0; //定义并初始化全局变量
   Vector v=new Vector();//创建Vector对象v

ffmpeg截取视频图片

 <?php
 $movie = new ffmpeg_movie("D:/worksplace/benbid/webuploader/server/upload/1500745761835.mp4");
  $allframe=$movie->getFrameCount();
  if($allframe>=1 and $allframe<50)
  {

thinkphp关联查询

 class IndexModel extends RelationModel{
    protected $_link = array(
            作者:xixibaba , 分类:编程 , 浏览:123 , 评论:0

PHP中构造函数的意义在哪里?

 <?php
class people{
  public $chang,$kuan; 
  function __construct($chang,$kuan){
  $this->chang=$chang;
  $this->kuan=$kuan;
  }
}
$

Eclipse智能提示及快捷键

1、java智能提示


(1). 打开Eclipse,选择打开" Window - Preferences"。


(2). 在目录树上选择"Java-Editor-Content Assist",在右侧的"Auto-Activation"找到"Auto Activation triggers for java"选项。默认触发代码提示的就是&qu

smarty模拟cms的articlelist文章列表标签

 在插件目录plugins中建文件

block.articlelist.php 文件名不能任意取

代码:

<?php
function smarty_block_articlelist($params, $content, $template, &$repeat)
{
   $conn=mysql_connect("localhost","root"

Powered By Z-BlogPHP 1.4 Deeplue Build 150101

Copyright Your WebSite.Some Rights Reserved.

蜀ICP备11021721号-5