看微软件的宣传说NET会自动回收内存.以前一直以为NET会自动回收也没有去细看.近来发现NET下的winForm程序,默认情况下不会自动释放内存.如果是循执行的程序内存会不断增大.具体会大到多少没有具体去测试.上网找了一下原来.NET有手动释放内存的机制的.需要加载命名空间using System....
1、方式1:字段加验证@modelMvcWeb.Models.UserInfo@{ViewBag.Title="Add";}Add@using(Html.BeginForm()){@Html.ValidationSummary(true)@Html.HiddenFor(model=>model.Id...
分类:
Web程序 时间:
2015-07-02 11:36:26
阅读次数:
144
// C#操作数据库的基础1 引用两个命名空间using data;using date.sqlclient;2 创建与数据库的连接方法一: sqlconnection a = new sqlconnection();//创建连接a.sqlconnection =" server=.;databas...
分类:
Web程序 时间:
2015-07-02 11:33:01
阅读次数:
113
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
编程语言 时间:
2015-07-02 11:31:15
阅读次数:
115
29 Divide Two Integers链接:https://leetcode.com/problems/divide-two-integers/
问题描述:
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.Hide T...
分类:
其他好文 时间:
2015-07-02 10:23:47
阅读次数:
113
声明:这篇文章是抄袭http://blog.csdn.net/sjf0115/article/details/8645991 请大家自己查看原博客#include
#include
#include
using namespace std;//二叉树结点数据结构
typedef struct BiTNode
{
char data;...
分类:
其他好文 时间:
2015-07-02 10:13:45
阅读次数:
90
SocketClient.cpp#include "SocketClient.h"#include "ClientInfoSave.h"#include "serverMsg.pb.h"using namespace Message;string SocketClient::m_strHeatMsg...
分类:
其他好文 时间:
2015-07-02 07:38:24
阅读次数:
481
主要是建图有些小烦,若几个节点流量的来源或者去向完全相同,且流量为 INF,将它们合并成一个节点。
若从两点间有且仅有一条容量为 INF 的边,将两点合并成一个节点。
#include
#include
#include
using namespace std;
const int INF = 0x7fffffff;
const int MAXN = 110;
int capac...
分类:
其他好文 时间:
2015-07-02 06:37:10
阅读次数:
127
题目描述:
输入一个整数n(2
输入:
输入有多组数据。
每组一行,输入n。
输出:
输出所有从1到这个整数之间(不包括1和这个整数)个位为1的素数(素数之间用空格隔开,最后一个素数后面没有空格),如果没有则输出-1。
样例输入:
100
样例输出:
11 31 41 61 71
C++代码:
#include
using name...
分类:
其他好文 时间:
2015-07-02 01:07:18
阅读次数:
178
之前就在项目里面用过zxing生成二维码,最近另一个项目同样需要用到二维码,故重新在学了学利用zxing生成二维码接下来先做准备工作了,因为我是用vs2013上开发的,故选择了.net4.5版本的zxing.dll.另外准备了一张准备嵌入的图片,代码如下: 1 using System; 2 usi...
分类:
其他好文 时间:
2015-07-02 00:55:12
阅读次数:
199