文件名称:VC++ 画线 cdc
文件大小:1.86MB
文件格式:RAR
更新时间:2013-02-16 04:15:58
VC++ 画图
用VC的CDC画随机数 源码#pragma once #endif // _MSC_VER > 1000 const int N=10000; class CRandDrawView : public CView { protected: // create from serialization only CRandDrawView(); DECLARE_DYNCREATE(CRandDrawView) // Attributes public: CRandDrawDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CRandDrawView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: int m_zeroarryN[N]; int Y; int y; int x; int Bubblesort(int data[]); int SelectSort(int x[]); int QuickSort(int ww[], int left, int right); int m_zeroarry[N]; // int m_zeroarry [N]; virtual ~CRandDrawView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif
【文件预览】:
RandDraw
----RandDraw.ncb(113KB)
----StdAfx.cpp(210B)
----resource.h(781B)
----RandDraw.clw(2KB)
----RandDrawView.h(2KB)
----RandDraw.dsw(524B)
----MainFrm.h(2KB)
----RandDrawView.cpp(6KB)
----Debug()
--------RandDraw.obj(22KB)
--------vc60.pdb(364KB)
--------vc60.idb(209KB)
--------RandDraw.pch(5.24MB)
--------RandDraw.pdb(329KB)
--------RandDraw.res(8KB)
--------RandDrawView.obj(29KB)
--------RandDraw.ilk(304KB)
--------RandDrawDoc.obj(14KB)
--------MainFrm.obj(19KB)
--------StdAfx.obj(103KB)
--------RandDraw.exe(116KB)
----RandDraw.opt(49KB)
----RandDrawDoc.h(1KB)
----ReadMe.txt(4KB)
----StdAfx.h(1KB)
----RandDraw.cpp(4KB)
----MainFrm.cpp(3KB)
----RandDraw.dsp(5KB)
----RandDraw.h(1KB)
----RandDraw.plg(250B)
----res()
--------RandDraw.rc2(400B)
--------RandDrawDoc.ico(1KB)
--------RandDraw.ico(1KB)
--------Toolbar.bmp(1KB)
--------cursor1.cur(326B)
----RandDraw.rc(12KB)
----RandDrawDoc.cpp(2KB)
----RandDraw.aps(29KB)