namespace ArrayList集合的语句示例{ class Program { static void Main(string[] args) { //一:Stack集合(没有索引) 先进后出,一个一个赋值,一个一个取值,按顺序 //Stack ss = new Stack(); //ss....
分类:
其他好文 时间:
2015-04-08 23:17:44
阅读次数:
201
namespace 集合习题练一练{ class Program { static void Main(string[] args) { Console.WriteLine("请输入你们班的人数:"); int n = Convert.ToInt32(Console.ReadLine()); Arr...
分类:
其他好文 时间:
2015-04-08 23:13:37
阅读次数:
220
本例子因为两个线程公用同线程中,使用同一个对象,实现了他们公用一把锁,实现了同一个方法的互斥。package locks;/** *会被打乱的效果 */public class LockTest2 { public static void main(String[] args) { ...
分类:
编程语言 时间:
2015-04-08 23:06:42
阅读次数:
153
namespace 集合__双色球练一练{ class Program { static void Main(string[] args) { // while (true) // { // ArrayList al = new ArrayList(); // al.Add(1); al.Add(....
分类:
其他好文 时间:
2015-04-08 23:05:25
阅读次数:
117
namespace 英雄联盟对战{ class Program { struct player { public string name; public int hp; public int gj; public int fy; public int dj; public jn jineng; /....
分类:
其他好文 时间:
2015-04-08 23:03:03
阅读次数:
282
就是一个简单的bfs的问题,这里用队列来解决问题,有栈来输出路径。#include"iostream"#include"stdio.h"#include"algorithm"#include"queue"#include"string.h"#include"cmath"#include"stack"...
分类:
其他好文 时间:
2015-04-08 22:57:58
阅读次数:
246
与用户空间应用不同的是,内核不能调用标准C库或其它任何不属于内核的库。主要原因是,速度及大小的限制。标准C库对内核而言实在是太大了。许多常用的的 libc 函数已经在内核中实现了。内核中的库文件是在内核的根目录下 lib 目录下存放。如常用的字符串操作函数是在 lib/string.c 中定义的,调...
分类:
系统相关 时间:
2015-04-08 22:57:02
阅读次数:
250
1、单例设计模式:一个类只实例化一个对象。有饿汉式和懒汉式两种方式。 1 package pack; 2 public class Test1 3 { 4 public static void main(String[] args) 5 { 6 System.out...
分类:
编程语言 时间:
2015-04-08 22:53:57
阅读次数:
144
JNI开发的流程1.先在java代码里面声明一个native的方法public native String helloFromC();2.在Eclipse的工程目录下创建一个文件夹,名称为jni。3.编写c代码,按照规范编写jstring Java_com_itheima_hellojni_main...
分类:
移动开发 时间:
2015-04-08 22:53:54
阅读次数:
145
namespace 集合与特殊集合{ class Program { static void Main(string[] args) { ArrayList al = new ArrayList(); al.Add("李青"); al.Add("约里克"); al.Add("安妮"); al.Add...
分类:
其他好文 时间:
2015-04-08 22:49:35
阅读次数:
151