导航

2011年3月20日

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace hetaoTest{ public partial class Form1 : Form { static SqlConnection conn = null; public Form1() { Initia 阅读全文

posted @ 2011-03-20 23:10 beeone 阅读(928) 评论(0) 推荐(0) 编辑

摘要: try{ string NameStr=this.txtName.Text; string AgeStr =this.txtAge.Text; SqlConnection conn = new SqlConnection("Data Source=hetao;Initial Catalog=TestDB;Integrated Security=True"); conn.Open(); SqlCommand cmd=new SqlCommand("select count(*) as flag from T_UserName where name="+&q 阅读全文

posted @ 2011-03-20 19:08 beeone 阅读(1146) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Text;namespace NarcissusNumber{ class Program { public static void Main(string[] args) { int a; string s; do { Console.WriteLine("3----找出三位数所有的水仙花数!"); Console.WriteLine("4----找出四位数所有的水仙花数!"); Console.WriteLine("5--- 阅读全文

posted @ 2011-03-20 15:25 beeone 阅读(4271) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Text;namespace Consolezeng{ class Program { /*************输出九九乘法口诀***************/ static void Main(string[] args) { string str = " "; int i; int j; int sum; for (i = 1; i < 10; i++) { for (j = 1; j <=i; j++) { sum = i * j; C 阅读全文

posted @ 2011-03-20 15:23 beeone 阅读(557) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Text;namespace ConsoleShui{ class Program { /**********************输出菱形**********************/ static void Main(string[] args) { int i; int j; int k; for (i = 0; i <=10; i++) /*输出上面10行的*号*/ { for(j = 0; j <10 - i; j++) Console.Write(&q 阅读全文

posted @ 2011-03-20 15:18 beeone 阅读(4706) 评论(0) 推荐(0) 编辑