关于 JsonIgnore 问题,EF T4 模板 中 存在主外键关系namespace WindowsFormsApplication1{ using System; using System.Collections.Generic; using Newtonsoft.Json; public p...
分类:
Web程序 时间:
2014-07-18 16:19:57
阅读次数:
433
油田问题,有点像图像处理里的区域生长问题,找油田块数。BFS,DFS都可以。 1 /*BFS*/ 2 #include 3 #include 4 const int maxn=100+5,maxm=1000; 5 int m,n,vis[maxn][maxn],mat[maxn][maxn],dir...
分类:
其他好文 时间:
2014-07-18 16:19:41
阅读次数:
267
01背包,DP简答题就行,要用滚动数组,不然内存要爆。for循环的方向很重要,虽然是简单题,但对理解DP帮助很大,听队长说要把每一个状态写出来,我试着写了一下,果然更容易理解了。 1 #include 2 #include 3 #define doumax(a,b) (a>b?a:b) 4 cons...
分类:
其他好文 时间:
2014-07-18 09:23:32
阅读次数:
181
假设一个应用抛出大量的Classnot found信息,一般你会怀疑包冲突。但是tomcat的webappclassloader却有这种问题:假设一个应用公布出现故障, webappclassloader的started属性被设为false.然后其他线程假设继续使用webappclassloader...
分类:
移动开发 时间:
2014-07-18 09:22:56
阅读次数:
190
1、利用System.getProperty()函数获取当前路径:System.out.println(System.getProperty("user.dir"));//user.dir指定了当前的路径2、使用File提供的函数获取当前路径:File directory = new File(""...
分类:
编程语言 时间:
2014-07-18 00:12:41
阅读次数:
286
BFS结合队列#include#include#includeusing namespace std;int x,y,l;const int maxn=300+5;int visit[maxn][maxn];struct node{ int xpos; int ypos; int ...
分类:
其他好文 时间:
2014-07-18 00:11:24
阅读次数:
245
时间限制:0.25s空间限制:4M题意 你的任务是找到最小自然数 N, 使N!在十进制下包含 Q个零. 众所周知 N! = 1*2*...*N. 例如, 5! = 120, 120 结尾包含1个零.Input 一个数 Q (0using namespace std;int check ...
分类:
其他好文 时间:
2014-07-18 00:10:28
阅读次数:
263
1.antlr --ANTLR (ANother Tool for Language Recognition)语法分析器,它提供一个包括 java,c#和C++在内的语法描述框架Hibernate利用它实现HQL?到SQL的转换 错误情况: 项目中没有添加antlr-*.jar,hibernat.....
分类:
系统相关 时间:
2014-07-18 00:09:10
阅读次数:
324
最近跟业务部的同事吃饭的时候聊天,他们说好多客户都会问下我们选择电信宽带和其他宽带有什么区别呢?看广州电信到底有哪些优势呢?现在小编总结了电信最大的四大优势跟大家分享:电信宽带优势一:应用优势 全国90%以上的个人和商业网站都直接与电信互联,游戏服务器100%与电信网络互联,内容极其丰富,速度有保....
分类:
移动开发 时间:
2014-07-18 00:08:13
阅读次数:
323
下面以三个页面分别命名为framedemo.html,top.html,button.html为例来具体说明如何做。其中framedemo.html由上下两个页面组成,代码如下:frameDemo现在假设top.html即上面的页面有一个button来实现对下面页面的刷新,可以用以下七种语句,哪个好...
分类:
编程语言 时间:
2014-07-18 00:06:23
阅读次数:
249