摘要: private void button2_Click(object sender, EventArgs e) { int x = 0; int y = 0; int z = 0; for (int i = 1; i < 100; i++) { for (int j = 1; j < 100; j++) { for (int k = 1; k < 100; k++) { if (5 * i + 3 * j + k / 3 == 100 && i + j + k == 100) { x = i; y = j; z = k; MessageBox.Show(&quo 阅读全文
posted @ 2012-07-14 15:20 美丽的矩阵 阅读(276) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { int x = 0; int y = 0; int z = 0; for (int i = 1; i <= 33; i++) { for (int j = 1; j <= 14; j++) { for (int k = 1; k <= 20; k++) { if (3 * i +1 == 7 * j -2&& 7 * j -2 == 5 * k) { x = i; y = j; z = k; } } } } MessageBox.Show(&quo 阅读全文
posted @ 2012-07-14 15:04 美丽的矩阵 阅读(202) 评论(0) 推荐(0) 编辑
摘要: ALTER procedure [dbo].[分页]@pageSize int,@pageOrder int,@searchTable NVARCHAR(200),@pageAmount INT OUTPUTASBEGIN DECLARE @STR NVARCHAR(MAX) SET @STR = ' set @pageAmount =(select COUNT(*)/@pageSize from @searchTable) select top (@pageSize) * from @searchTable where fid not in ( select top (@pageSi 阅读全文
posted @ 2012-07-14 14:25 美丽的矩阵 阅读(146) 评论(0) 推荐(0) 编辑