简单例子1: 1 public class Varable { 2 public static void main(String[] args) { 3 print("I ","love ","you ","!"); 4 } 5 static void pri...
分类:
编程语言 时间:
2015-03-11 12:33:40
阅读次数:
142
通过磁盘管理的界面方式, 第四个分区会被分成扩展分区, 建议通过命令行打开命令行运行diskpart,list disk 会列出所有磁盘, 选择要操作的磁盘序号如1,select disk 1如果要清除原有所有分区信息, cleancreate part pri size=102400 这是建立10...
#include int main() { int m,n,k; for(m=1;m<=9;m++) { for(n=1;n<=m;n++) { k=m*n; printf("%d*%d=%d ",m,n,k); } pri...
分类:
其他好文 时间:
2015-03-09 18:57:51
阅读次数:
137
/**
* 输出yes或no 用随机数产生两个数
*/
public class 送分啦 {
public static void main(String[] args) {
int n = (int) (Math.random() * 2 + 1);
if (n == 1)
System.out.println("yes");
else
System.out.pri...
分类:
其他好文 时间:
2015-03-09 10:56:06
阅读次数:
123
public class IOTestNext { public static void main(String[] args){ /* * 1.第一种方式:使用java.util.Scanner * Scanner sc=new Scanner(System.in); System.out.pri...
分类:
其他好文 时间:
2015-03-08 15:29:57
阅读次数:
122
如果某些童鞋有制作数据字典到excel的需求,可以参考一下我提供的sql。SELECTtable_schema数据库名,table_name表名,column_name字段名,column_type字段类型,is_nullable是否可空,column_default默认值,
CASEWHENcolumn_key=‘PRI‘THEN‘主键‘
WHENcolumn_key=‘MUL‘THEN‘普通索引‘..
分类:
其他好文 时间:
2015-03-08 01:38:21
阅读次数:
218
#includeint sumAndminus(int n1, int n2, int *n3);int main(){ int a = 10; int b = 7; int he; int cha; he = sumAndminus(a,b,&cha); pri...
分类:
其他好文 时间:
2015-03-06 22:13:38
阅读次数:
169
在java中,说String是不可变的,可是为什么?当String变量需要经常变换其值时,应该考虑使用StringBuffer类,以提高程序效率?假设String s=new String ("wo");String s1=new String("de");s=s+s1;System.out.pri...
分类:
编程语言 时间:
2015-03-05 16:36:46
阅读次数:
187
废话不多说,代码如下,基本的解释也有using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SuanFa{ class Program { pri...
分类:
编程语言 时间:
2015-03-04 16:37:25
阅读次数:
140
Problem Description
The Princess has been abducted by the BEelzebub feng5166, our hero Ignatius has to rescue our pretty Princess. Now he gets into feng5166's castle. The castle is a large labyrinth. To make the problem simply, we assume the labyrinth is a...
分类:
其他好文 时间:
2015-03-04 11:12:13
阅读次数:
201