1: package compiler; 2: 3: /** 4: * //虚拟机指令 5:
* 6: * @author jiangnan 7: * 8: */ 9: public class Pcode { 10: 11: public
Pcode(int f, int l, int a) { ...
分类:
其他 时间:
2014-02-23 04:04:23
收藏:
0 评论:
0 赞:
0 阅读:
295
1: package compiler; 2: 3: import
java.io.IOException; 4: import java.util.BitSet; 5: 6: /** 7: * 语法分析器。
这是PL/0分析器中最重要的部分, 在语法分析的过程中嵌入了语法错误检查和目标代码生成。 ...
分类:
其他 时间:
2014-02-23 04:03:16
收藏:
0 评论:
0 赞:
0 阅读:
388
MVC是什么?M: Model就是我们获取的网页需要的数据V:View就是我们的aspx页面,注意这是一个不包含后台代码文件的aspx页面.(其实带有.asp.cs文件也不会有编译错误,但是这样写代码就违背了MVC的设计初衷)C:Controller就是我们获取数据,然后将数据绑定到页面控件的这个业...
分类:
Web开发 时间:
2014-02-23 03:57:24
收藏:
0 评论:
0 赞:
0 阅读:
422
//根据深度优先搜索策略判断一个有向图是否存在环public class FindCircle {
private boolean[] visited;//访问标记数组 private LinkStack S=new
LinkStack();//按深度优先遍历访问的先后顺序记录在一个连通分支中的顶点...
分类:
其他 时间:
2014-02-23 03:47:27
收藏:
0 评论:
0 赞:
0 阅读:
314
分类:
其他 时间:
2014-02-23 03:46:18
收藏:
0 评论:
0 赞:
0 阅读:
260
1: package compiler; 2: 3: import
java.io.BufferedReader; 4: import java.io.BufferedWriter; 5: import
java.io.IOException; 6: import java.util.Arrays;...
分类:
其他 时间:
2014-02-23 03:40:07
收藏:
0 评论:
0 赞:
0 阅读:
383
1 /*描述 2 求A+B是否与C相等。 3 输入 4 T组测试数据。 5
每组数据中有三个实数A,B,C(-10000.021 int main()22 {23 int T;24 scanf("%d",&T);25 float
a,b,c;26 while(T--)27 { 28 scanf("%...
分类:
其他 时间:
2014-02-23 03:38:51
收藏:
0 评论:
0 赞:
0 阅读:
408
新浪微博分享代码样例1, 分享到微博,简单分享(无需申请)2,
分享到微博,带有AppKey(Appkey需要前往 open.t.sina.com.cn 申请)字段需要经过encodeURIComponent,例子:你好
http://t.sina.com.cn/ ->
分类:
其他 时间:
2014-02-23 03:25:33
收藏:
0 评论:
0 赞:
0 阅读:
269
好久没写文章了,还记得年前面试了一家公司,为了检测一下我的学习能力,给了我一个任务,做一个自动登录并自动操作菜单的程序。花了几天的时间研究了Hook以及使用WindowsAPI操作程序的知识,现在记录一下,也算是一次温习。一丶Hook
在我看来Hook就是监测用户操作键盘(或虚拟键盘)以及鼠标的行为...
分类:
其他 时间:
2014-02-23 03:24:25
收藏:
0 评论:
0 赞:
0 阅读:
521
DescriptionA supermarket has a set Prod of
products on sale. It earns a profit px for each product x∈Prod sold by a
deadline dx that is measured as an...
分类:
其他 时间:
2014-02-23 03:17:10
收藏:
0 评论:
0 赞:
0 阅读:
320
题目分析:该题比较简单,对输入的整数各位数相加,对应的和的每一位以英文形式输出,注意10100该数值较大,超出int型和long
long型的表示范围,考虑用字符串接收后在转换为int型,不要遗漏掉特殊情况,比如和为0的时候。源代码如下: #include #include using
namesp...
分类:
其他 时间:
2014-02-23 03:04:46
收藏:
0 评论:
0 赞:
0 阅读:
256
1 public class LRUCache { 2 entry first,last; 3
Map map; 4 int curSize = 0; 5 int cap; 6 7 public LRUCache(int capacity) { 8
this.cap = capacity; 9 ma...
分类:
其他 时间:
2014-02-23 02:58:37
收藏:
0 评论:
0 赞:
0 阅读:
295
1: /* 2: * To change this license header,
choose License Headers in Project Properties. 3: * To change this template file,
choose Tools | Templates 4:...
分类:
其他 时间:
2014-02-23 02:55:09
收藏:
0 评论:
0 赞:
0 阅读:
639
利用aspose在word中输出表格序号 姓名 性别>>>
>>数据源一般是System.Data.DataTable有两种方式可以实现这个功能。通过绑定。在表格中设置域字段。需要注意的是,域的名称应与DataTable中的字段想对应。表的名称应与T一直。这个和.net数据展现控件一致。比如,gri...
分类:
Web开发 时间:
2014-02-23 02:49:16
收藏:
0 评论:
0 赞:
0 阅读:
507
在页面上显示当前在线人数效果:1、Global.asax文件:
后台:Span1.InnerHtml = "当前在线" + Application["count"].ToString() + "人";
分类:
Web开发 时间:
2014-02-23 02:37:12
收藏:
0 评论:
0 赞:
0 阅读:
367
是说这里的文本不是普通直接输出到客户端的文本,而是需要服务器来解释的。
分类:
Web开发 时间:
2014-02-23 02:36:04
收藏:
0 评论:
0 赞:
0 阅读:
304
1: package compiler; 2: 3: import
java.io.BufferedWriter; 4: 5: public class Err { 6: 7: public int errCount = 0;
8: public static final String[] errI...
分类:
其他 时间:
2014-02-23 02:16:58
收藏:
0 评论:
0 赞:
0 阅读:
340
转自:http://blog.csdn.net/hguisu/article/details/8930668Nginx由内核和模块组成,其中,内核的设计非常微小和简洁,完成的工作也非常简单,仅仅通过查找配置文件将客户端请求映射到一个location
block(location是Nginx配置中的一...
分类:
其他 时间:
2014-02-23 02:08:44
收藏:
0 评论:
0 赞:
0 阅读:
505
1: package compiler; 2: 3: import
java.io.BufferedReader; 4: import java.io.FileNotFoundException; 5: import
java.io.FileReader; 6: import java.util.A...
分类:
其他 时间:
2014-02-23 02:05:11
收藏:
0 评论:
0 赞:
0 阅读:
425
Visual Studio 中 Tab 转换为空格的设置在 Visual Studio 中写代码时,按
Tab 键,会自动进行缩进。有时希望实现按 Tab 键,出现多个空格的效果。Visual Studio 提供了这样的功能,具体设置方法为:打开“Tools
--> Options --> Text...
分类:
其他 时间:
2014-02-23 02:02:51
收藏:
0 评论:
0 赞:
0 阅读:
498