- 博客(12)
- 收藏
- 关注
转载 DataGridView.AutoGenerateColumns 属性
看GridView控件如何绑定到一个数据源控件的.aspx,看到AutoGenerateColumns=“False”,好奇这个属性的使用,于是查了下msdn的解释。译文翻译的略差,此附原文。Gets or sets a value indicating whether columns are created automatically when the DataSource
2013-03-18 10:26:34 2953
转载 QueryStringParameter 类
将 HTTP 请求查询字符串字段的值绑定到参数对象。 继承层次结构 System..::.ObjectSystem.Web.UI.WebControls..::.ParameterSystem.Web.UI.WebControls..::.QueryStringParameter命名空间: System.Web.UI.WebControls
2013-03-18 09:41:11 1931
转载 @Page指令中的AutoEventWireup
以前根本不注意AutoEventWireup这个小小的属性,但是后来由于它产生的许多麻烦使我不得不研究它,并最终领悟了它。如果你写了一个asp.net页面,里面包含了服务端脚本:void Page_Load(object sender, EventArgs e){lblMessage.Text="Thinking in Techmango.com";}
2013-03-16 14:50:29 486
原创 zju1002-Fire Net
搜索,深度优先遍历;判断每个单元格能否放置碉堡,如果可以,制‘O’,计数器加一,该方案递归完毕,单元格恢复;本单元格不放碉堡,进行方案递归。#include#include using namespace std;char cMap[4][4];int ibest, n; bool can(int row, int col){ int i; for(i
2013-03-14 11:39:26 679
原创 woj1010- Alternate Sum
公式题,ans=(max*2^(n-1))%2006;#include #include using namespace std; const int MaxN = 1 << 30; int main() { int n; while(1 == scanf("%d", &n) && n ) { int ma
2013-03-13 23:12:26 1494
原创 woj1009 - The Legend of Valiant Emigration
弗洛伊德算法,最短路径。#include#include#define INF 53356char str[105][105]; int tmp =0; void Ppath(int path[][100],int i2,int j2){ int k2; k2=path[i2][j2]; if(k2==-1) { return;
2013-03-13 23:07:37 1728
原创 woj1007- Feeding Animals(I)
贪心,把每一列最小的加起来。#include#include#include #define INF 10001int main(){ int cas; while((scanf("%d" , &cas)) != EOF) { int a[8][cas]; int i , j; for(i = 0
2013-03-13 22:54:27 1997
转载 woj1006-Language of Animals
#include #include #include #include using namespace std;long n,m,k,s,t;vector map[200001];bool hash[200001];struct{ long v; long len;}que[200001];long bfs(){ long i;
2013-03-13 22:49:23 1631
原创 woj1005 - Holding Animals
DescriptionThe total available floor space on the ark would have been over 100,000 square feet, which would be more floor space than in 20 standard sized basketball courts. But in our story, we
2013-03-13 21:40:33 2579
原创 woj1004 - Noah's Ark
进制转化:#include#include#include int main(){ double metre[3]; double temp; char a[3][15]; double val; val = 0.0000001; int i , j; while(scanf("%lf", &temp)!=EOF)
2013-03-13 21:33:11 1641
原创 woj1003 - Birth of Noah
简单题,最开始学C写的代码。#include#include#include int main() { char *a[13]={"Adam","Seth","Enosh","Kenan","Mahalalel", "Jared","Enoch","Methuselah","Lamech","Noah",
2013-03-13 18:31:04 2403
原创 woj1002-Genesis
题意:统计每一句的单词数,可以打表:#includeint main(){ int a[31]={10,31,11,22,19,19,26,20,25,27, 30,35,11,41,21,33,15,26,11,25, 33,29,11,34,36,50,21,49,33,37,24}; int b[3]={13
2013-03-13 18:07:31 1998
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人