//要求;用*打印出一个直角三角形。高8*。 public class zhijiaosanjiaoxing { public static void main(String[] args) { for(int i=0;i<8;i++){ for(int k=0;k<i+1;k++){ System ...
分类:
编程语言 时间:
2016-03-29 23:47:57
阅读次数:
693
Java在jdk1.5之后推出的一个新特性:自动拆装箱。 该特性不是jvm认可的,而是编译允许 public class Integerdemo03 { public static void main(String[] args) { /** * 编译器在编译下列代码时补充了代码 * Integer... ...
分类:
编程语言 时间:
2016-03-29 23:47:37
阅读次数:
248
"2.h"
#include<iostream>
#include<vector>
#include<assert.h>
usingnamespacestd;
template<classT>
structLess
{
booloperator()(constT&left,constT&right)
{
returnleft<right;
}
};
template<classT>
structGreater
{
b..
分类:
编程语言 时间:
2016-03-29 22:29:56
阅读次数:
501
在项目中添加struts2: 1:点击项目右击选择myeclipse 2:选择project facets 3:选择struts2 选择默认方式添加 1:新建一个action包,在新建一个类并继承ActionSupport这个接口,在里面重写 execute()方法。: public class A ...
分类:
Web程序 时间:
2016-03-29 19:27:14
阅读次数:
187
MyCommand.cs using System; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace DefineCommand { public class MyC... ...
分类:
其他好文 时间:
2016-03-29 19:19:44
阅读次数:
130
<?php namespace Home\Controller;use Think\Controller;class MsgController extends Controller{ public function AddMsg(){ } public function EditMsg(){ } ...
分类:
其他好文 时间:
2016-03-29 16:35:54
阅读次数:
172
1.winform [PermissionSet(SecurityAction.Demand, Name = "FullTrust")] [ComVisible(true)] public partial class Form1 : Form { public Form1() { Initializ ...
这两天在研究Java调用打印机打印PDF文件的方法,学到了不少东西,特别来记录一下。 关于Java打印网上最多的而且也是Java正统的打印方法就是使用PrintService,一套比較标准的打印代码例如以下: public class PrintDemo { public static void m ...
分类:
编程语言 时间:
2016-03-29 16:20:20
阅读次数:
338
public DataTable ListToDataTable<T>(List<T> list) { DataTable dt = new DataTable("CarInfo"); Type type = typeof(T);//根据类型获取类型 System.Reflection.Proper ...
分类:
其他好文 时间:
2016-03-29 14:36:52
阅读次数:
163
在调用验证码之前加上 ob_clean(); 不显示验证码的代码: public function verify(){ $verify = new \Think\Verify(); $verify->entry(); } 修改为: public function verify(){ ob_clean ...
分类:
其他好文 时间:
2016-03-29 14:28:36
阅读次数:
137