欢迎来到天天文库
浏览记录
ID:55514572
大小:139.50 KB
页数:11页
时间:2020-05-15
《实验中的部截图.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、实验中的部分截图:主要代码:#include"stdafx.h"#include"Apriori.h"#include"AprioriSet.h"#include"AprioriDoc.h"#include"AprioriView.h"#include"SetPara.h"#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE[]=__FILE__;#endif//CAprioriViewBEGIN_MESSAGE_MAP(CAprioriView,CRecordView)ON_COMMAND(ID_
2、FILE_PRINT,CRecordView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_DIRECT,CRecordView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_PREVIEW,CRecordView::OnFilePrintPreview)END_MESSAGE_MAP()voidCAprioriView::DoDataExchange(CDataExchange*pDX){CRecordView::DoDataExchange(pDX);//控件与类成员交换数据DDX_Control(pDX,IDC
3、_List_FreqItem,m_List_FreqItem);}BOOLCAprioriView::PreCreateWindow(CREATESTRUCT&cs){returnCRecordView::PreCreateWindow(cs);}voidCAprioriView::OnInitialUpdate(){m_pSet=&GetDocument()->m_aprioriSet;//GetDocument一个成员函数CRecordView::OnInitialUpdate();GetParentFrame()->RecalcLayout();ResizeParent
4、ToFit();}BOOLCAprioriView::OnPreparePrinting(CPrintInfo*pInfo){returnDoPreparePrinting(pInfo);}#ifdef_DEBUGvoidCAprioriView::AssertValid()const{CRecordView::AssertValid();}voidCAprioriView::Dump(CDumpContext&dc)const{CRecordView::Dump(dc);}CAprioriDoc*CAprioriView::GetDocument(){ASSERT(m_pD
5、ocument->IsKindOf(RUNTIME_CLASS(CAprioriDoc)));return(CAprioriDoc*)m_pDocument;}#endifCRecordset*CAprioriView::OnGetRecordset(){returnm_pSet;}//CAprioriViewmessagehandlersvoidCAprioriView::OnBnFreqItem(){intnFieldCount=m_pSet->GetODBCFieldCount();//return'Thenumberoffieldsintherecordset'int
6、nDbCount;CStringstrValue;CStringstrIntToString="";clock_tstart,stop,tick;doubletimeused;intnLargeCount=0;intnListFreqItemCount=0;start=clock();ClearItem();m_List_FreqItem.InsertColumn(0,"Item",LVCFMT_LEFT,100);//'Insertsanewcolumninalistviewm_List_FreqItem.InsertColumn(1,"Count",LVCFMT_LEFT
7、,100);if(nItemCount<=0){MessageBox("请先进行参数设置",NULL,MB_OK);return;}FindLargeItem();for(intk=1;LargeItemCount[k-1]!=0;k++){AprioriGen(k,1);//由L(k-1)生成C(k)for(intmm=0;mmMoveFirst();nDbCount=0;while(!m_p
此文档下载收益归作者所有