- 博客(6)
- 收藏
- 关注
转载 GridView的使用-4
protected void Page_Load(object sender, EventArgs e) { } protected void btnCX_Click(object sender, EventArgs e) { GridView1.DataSource = new tbStuInfoManager().GetStuBySname(...
2019-06-11 21:24:36
179
转载 GridView的使用-3
public List<Good> GetAllGood() { string sql = "select * from dbo.tb_Goods"; SqlDataReader dr = DBHelper.ExecuteReader(DBHelper.ConnectionString, CommandType.Text, ...
2019-06-11 21:19:45
168
转载 GridView的使用-2
<form id="form1" runat="server"> <div> <table> <tr><td style="height: 39px; color: white; background-color: #003399;text-align:center"> 公司信息一览表&...
2019-06-11 21:18:09
226
转载 GridView的使用-1
<form id="form1" runat="server"> <div> <table> <tr><td style="height: 39px; color: white; background-color: #003399;text-align:center">商品信息管理&l...
2019-06-11 21:16:53
931
原创 冒泡排序
//冒泡排序/* 1.输入要排序的数量 2.输入要排序的值 3.将每个值与后一个值比较,如果后面的值小于值,那么就交换它们的位置 4.重复3的操作直到与最后一个值交换过后 5.由于末位已经与前面所有比对,所以再次重复3,4操作,不需要对其继续比对 6.对所有数比对结束后输出 */ #include <stdio.h>int main(){ int i, ...
2018-04-21 09:50:52
117
原创 快速排序
在《啊哈!算法》里面看到的快速排序,前几天可能心有些浮躁什么的,就没理解透,今天在想写出来就有些困难了,因此自己重新整理了思路,记录下来以便自己以后复习。//快速排序/* 快速排序思路: 1.找到一个初始的值 2.从数组的左右两端开始找 3.从右端先开始出发向左,先找一个比初始值小的数 //解释:关于代码处循环条件为a[j] >= temp && i <...
2018-04-21 09:19:25
141
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人