码迷,mamicode.com
首页 >  
搜索关键字:pri    ( 1072个结果
Java可变长参数
简单例子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
WIN7下强制分第四个主分区的方法
通过磁盘管理的界面方式, 第四个分区会被分成扩展分区, 建议通过命令行打开命令行运行diskpart,list disk 会列出所有磁盘, 选择要操作的磁盘序号如1,select disk 1如果要清除原有所有分区信息, cleancreate part pri size=102400 这是建立10...
分类:Windows程序   时间:2015-03-10 06:46:44    阅读次数:178
九九乘法表
#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类
在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
hdu 1026 Ignatius and the Princess I 广搜+优先队列+记录路径
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
1072条   上一页 1 ... 87 88 89 90 91 ... 108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!