- 博客(15)
- 资源 (1)
- 收藏
- 关注
转载 MFC中的列表控件CListCtrl
在使用CListCtrl控件Report显示风格时,需要设置列标题信息,否则不能向控件中添加数据信息,编辑列标题需要使用InsertColumn方法: m_ListCtrl.InsertColumn(0, "姓名", LVCFMT_LEFT, 150, 0); m_ListCtrl.InsertColumn(1, "联系电话", LVCFMT_LEFT, 150, 1)
2013-07-11 10:40:23
550
原创 最小生成树(普里姆算法)
#include#include#include#include //#define INFINITY INT_MAX//用整型最大值代替无穷大#define MAX_VERTEX_NUM 20//最大的顶点的个数#define MAX_NAME 3//定点字符串的最大长度+1typedef int VRType;typedef char VertexType[MAX_NAME]
2013-05-17 16:28:11
671
原创 图的深度遍历和广度遍历
#include#include#include "queue.h"#define MAX_VERTEX_NUM 20typedef int VertexType;typedef struct ArcNode{ int adjvex;//该弧所指向的顶点的位置 struct ArcNode *nextarc;//指向下一条弧的指针}ArcNode;typedef struc
2013-05-17 16:26:11
891
转载 C++中数字与字符串之间的转换
1.字符串数字之间的转换(1)string --> char * string str("OK"); char * p = str.c_str();(2)char * -->string char *p = "OK"; string str(p);(3)char * -->CString char *p ="OK"; CString m_Str(p);
2013-04-27 20:49:39
491
原创 datagridview 的常用方法
1.可编辑性1.1 整体禁止编辑 dataGridView1.ReadOnly = true ;1.2设置 DataGridView1 的第2列整列单元格为只读DataGridView1.Columns[1].ReadOnly= true;1.3设置 DataGridView1 的第3行整行单元格为只读DataGridView1.Rows[2].R
2013-04-27 20:30:30
837
转载 【C#基础】之WinForm窗体常用控件的属性、方法及事件简介
今天结合自己以前搜集的一些资料简单总结下Winform窗体常用的控件使用及其属性、方法、事件等……一、按钮(Button)控件 几乎存在于所有Windows对话框中,是Windows应用程序中最常用的控件之一。按钮控件允许用户通过单击来执行操作。按钮最重要的事件,也是最常用的事件就是Click。当用户单击按钮时,都会调用Click事件。按钮的常用属性和事件:1、常用
2013-04-27 20:09:59
2909
1
原创 datagridview 应用大全
http://www.cnblogs.com/xiaofengfeng/archive/2011/04/16/2018504.html
2013-04-27 19:33:05
747
原创 递归的创建和访问二叉树
#include#includetypedef char TElemType;typedef int status;typedef struct BiTNode{ TElemType data;//树的节点的值 struct BiTNode *lchild,*rchild;//定义树的左孩子指针和右孩子指针}BiTNode,*BiTree;//先序创建二叉树status
2013-04-25 21:44:07
412
原创 集合的交并差链式表示
#include#includetypedef struct ListNode{int data;struct ListNode *next;}ListType;//创建ListType *createlist(int n){// int n;ListType *head,*s,*r;head=(ListType *)malloc(sizeof(ListType
2013-04-21 09:37:29
923
原创 停车场管理系统(用栈和队列实现)
#include#include#include#define True 1#define False 0#define ok 1#define Error 0#define Infeasible -1#define Overflow -2#define price 0.05//--*-*-*-*-*-*-*-*-车辆信息定义*-*-*-*-*-*-*//typedef
2013-04-21 09:34:30
3045
转载 ACM竞赛常用STL(二)之STL--algorithm
无疑是STL 中最大的一个头文件,它是由一大堆模板函数组成的。下面列举出中的模板函数:adjacent_find / binary_search / copy / copy_backward / count/ count_if / equal / equal_range / fill / fill_n / find /find_end / find_first_of / find_
2013-04-08 19:42:53
457
转载 ACM竞赛常用STL(一)
全排列函数next_permutationSTL 中专门用于排列的函数(可以处理存在重复数据集的排列问题)头文件:#include using namespace std;调用: next_permutation(start, end);注意:函数要求输入的是一个升序排列的序列的头指针和尾指针.用法: [cpp] view
2013-04-08 19:41:41
650
转载 c#复习总结
C#第一章笔记1.C#程序的框架 namespace 包名 { class 类名 { static void Main(string[] args) { Console.WriteLine("Hello .net"); Console.ReadLine(); } } }解释:namespace:命名空间的声明,类似于j
2013-04-05 17:14:45
1181
转载 c#登陆界面的判定和时间限定,SQL
private void btnLogin_Click(object sender, EventArgs e) { //从app.config文件中获取节点的name属性为strcon的connectionString的值,也就是获取对应的连接字符串 string strcon=ConfigurationManager.Connect
2013-04-05 17:12:53
682
原创 数据结构之顺序表(集合的交并差)
//c语言#include#include#define LIST_INIT_SIZE 100 //线性表存储空间的初始分配量#define LISTINCREASE 10 // 线性表存储空间的分配增量typedef int ElemType;typedef int Status;typedef struct{ ElemType *elem;/* 存储空间的首地址 */
2013-03-24 10:34:17
4889
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人