9512.net
甜梦文库
当前位置:首页 >> 学科竞赛 >>

C++源码



C++源码 =>> Part One #if !defined(AFXXFNew_DLGCHANGEPASSWORDXFNew_HXFNew_XFNew_7CFAE742X FNew_B888XFNew_11D7XFNew_A240XFNew_5254AB3E4F7EXFNew_XFNew_INCLUDE DXFNew_) #define AFXXFNew_DLGCHANGEPASSWORDXFNew_HXFNew_XFNew_7CFAE742XFNew_B888 XFNew_11D7XFNew_A240XFNew_5254AB3E4F7EXFNew_XFNew_INCLUDEDXFNew_ #if XFNew_MSCXFNew_VER > 1000 #pragma once #endif XFNew_MSCXFNew_VER > 1000 DlgChangePassWord.h : header file #include "myfunction.h" CDlgChangePassWord dialog class CDlgChangePassWord : public CDialog { Construction public: bool SetTheFocus(); CDlgChangePassWord(CWnd pParent = NULL); standard constructor Dialog Data {{AFXXFNew_DATA(CDlgChangePassWord) enum { IDD = IDDXFNew_DIALOGXFNew_CHANGEPASSWORD }; CEditmXFNew_editMM2; CEditmXFNew_editMM1; }}AFXXFNew_DATA LRunSql mXFNew_runsql; Overrides ClassWizard generated virtual function overrides {{AFXXFNew_VIRTUAL(CDlgChangePassWord) public: virtual BOOL PreTranslateMessage(MSG pMsg); protected: virtual void DoDataExchange(CDataExchange pDX); DDXDDV support }}AFXXFNew_VIRTUAL Implementation protected: Generated message map functions {{AFXXFNew_MSG(CDlgChangePassWord) virtual void OnOK(); virtual BOOL OnInitDialog(); }}AFXXFNew_MSG DECLAREXFNew_MESSAGEXFNew_MAP() };

{{AFXXFNew_INSERTXFNew_LOCATION}} Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif !defined(AFXXFNew_DLGCHANGEPASSWORDXFNew_HXFNew_XFNew_7CFAE 742XFNew_B888XFNew_11D7XFNew_A240XFNew_5254AB3E4F7EXFNew_XFNew_INCL UDEDXFNew_) C++源码 =>> Part Two ScrollPrintDoc.cpp : implementation file #include "stdafx.h" #include "a1.h" #include "ScrollPrintDoc.h" #include "LSingleDocTemplate.h" #ifdef XFNew_DEBUG #define new DEBUGXFNew_NEW #undef THISXFNew_FILE static char THISXFNew_FILE[] = XFNew_XFNew_FILEXFNew_XFNew_; #endif CScrollPrintDoc IMPLEMENTXFNew_DYNCREATE(CScrollPrintDoc, CDocument) CScrollPrintDoc::CScrollPrintDoc() { this->SetTitle("打印"); } BOOL CScrollPrintDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; return TRUE; } CScrollPrintDoc::~CScrollPrintDoc() {TRACE("~CScrollPrintDoc()\n"); LSingleDocTemplatepDocTemp=(LSingleDocTemplate)mXFNew_pDocTemplate; pDocTemp->mXFNew_frame=NULL; } BEGINXFNew_MESSAGEXFNew_MAP(CScrollPrintDoc, CDocument) {{AFXXFNew_MSGXFNew_MAP(CScrollPrintDoc) NOTE - the ClassWizard will add and remove mapping macros here. }}AFXXFNew_MSGXFNew_MAP ENDXFNew_MESSAGEXFNew_MAP() CScrollPrintDoc diagnostics #ifdef XFNew_DEBUG void CScrollPrintDoc::AssertValid() const { CDocument::AssertValid();

} void CScrollPrintDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif XFNew_DEBUG CScrollPrintDoc serialization void CScrollPrintDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { TODO: add storing code here } else { TODO: add loading code here } } CScrollPrintDoc commands C++源码 =>> Part Three Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ NOTE: Do not modify the contents of this file. If this class is regenerated by Microsoft Visual C++, your modifications will be overwritten. #include "stdafx.h" #include "vcintersection.h" CVcIntersection properties CVcIntersection operations BOOL CVcIntersection::GetAuto() { BOOL result; InvokeHelper(0x1, DISPATCHXFNew_PROPERTYGET, VTXFNew_BOOL, (void)&result, NULL); return result; } void CVcIntersection::SetAuto(BOOL bNewValue) { static BYTE parms[] = VTSXFNew_BOOL; InvokeHelper(0x1, DISPATCHXFNew_PROPERTYPUT, VTXFNew_EMPTY, NULL, parms, bNewValue); } double CVcIntersection::GetPoint() {

double result; InvokeHelper(0x2, DISPATCHXFNew_PROPERTYGET, VTXFNew_R8, (void)&result, NULL); return result; } void CVcIntersection::SetPoint(double newValue) { static BYTE parms[] = VTSXFNew_R8; InvokeHelper(0x2, DISPATCHXFNew_PROPERTYPUT, VTXFNew_EMPTY, NULL, parms, newValue); } long CVcIntersection::GetAxisID() { long result; InvokeHelper(0x3, DISPATCHXFNew_PROPERTYGET, VTXFNew_I4, (void)&result, NULL); return result; } short CVcIntersection::GetIndex() { short result; InvokeHelper(0x4, DISPATCHXFNew_PROPERTYGET, VTXFNew_I2, (void)&result, NULL); return result; } BOOL CVcIntersection::GetLabelsInsidePlot() { BOOL result; InvokeHelper(0x5, DISPATCHXFNew_PROPERTYGET, VTXFNew_BOOL, (void)&result, NULL); return result; } void CVcIntersection::SetLabelsInsidePlot(BOOL bNewValue) { static BYTE parms[] = VTSXFNew_BOOL; InvokeHelper(0x5, DISPATCHXFNew_PROPERTYPUT, VTXFNew_EMPTY, NULL, parms, bNewValue); } C++源码 =>> Part Four DataXS.cpp: implementation of the CDataXS class. #include "stdafx.h" #include "a1.h" #include "DataXS.h" #ifdef XFNew_DEBUG

#undef THISXFNew_FILE static char THISXFNew_FILE[]=XFNew_XFNew_FILEXFNew_XFNew_; #define new DEBUGXFNew_NEW #endif ConstructionDestruction CDataXS::CDataXS(int state) { mXFNew_pstrlistFieldsXFNew_Names=new CStringList[2]; mXFNew_iState=state; switch(this->mXFNew_iState) { case XS: { mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("xsXFNew_ph");mXFNew_pstrlistFieldsXF New_Names[1].AddTail("销售票号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("khXFNew_id");mXFNew_pstrlistFieldsXFN ew_Names[1].AddTail("客户编号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("khXFNew_name");mXFNew_pstrlistFields XFNew_Names[1].AddTail("客户名称"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ys");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("应收金额"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ss");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("实收金额"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ws");mXFNew_pstrlistFieldsXFNew_Name s[1].AddTail("未收金额"); break; } case XSTH: { mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("xsthXFNew_ph");mXFNew_pstrlistFieldsX FNew_Names[1].AddTail("退货票号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("xsXFNew_ph");mXFNew_pstrlistFieldsXF New_Names[1].AddTail("销售票号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("khXFNew_id");mXFNew_pstrlistFieldsXFN ew_Names[1].AddTail("客户编号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("khXFNew_name");mXFNew_pstrlistFields XFNew_Names[1].AddTail("客户名称"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("yf");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("应付金额"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("sf");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("实付金额"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("wf");mXFNew_pstrlistFieldsXFNew_Name s[1].AddTail("未付金额"); break;

} case RK: { mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("rkXFNew_ph");mXFNew_pstrlistFieldsXF New_Names[1].AddTail("入库票号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("gysXFNew_id");mXFNew_pstrlistFieldsXF New_Names[1].AddTail("供应商编号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("gysXFNew_name");mXFNew_pstrlistFields XFNew_Names[1].AddTail("供应商名称"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("yf");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("应付金额"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("sf");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("实付金额"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("wf");mXFNew_pstrlistFieldsXFNew_Name s[1].AddTail("未付金额"); break; } case RKTH: { mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("rkthXFNew_ph");mXFNew_pstrlistFieldsX FNew_Names[1].AddTail("退货票号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("rkXFNew_ph");mXFNew_pstrlistFieldsXF New_Names[1].AddTail("入库票号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("gysXFNew_id");mXFNew_pstrlistFieldsXF New_Names[1].AddTail("供应商编号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("gysXFNew_name");mXFNew_pstrlistFields XFNew_Names[1].AddTail("供应商名称"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ys");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("应收金额"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ss");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("实收金额"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ws");mXFNew_pstrlistFieldsXFNew_Name s[1].AddTail("未收金额"); break; } } mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ypXFNew_id"); mXFNew_pstrlistFieldsXFNew_Names[1].AddTail("药品编号"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ypXFNew_name");mXFNew_pstrlistFields XFNew_Names[1].AddTail("药品名称"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("ckXFNew_name");mXFNew_pstrlistFields XFNew_Names[1].AddTail("仓库名称"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("pzs");mXFNew_pstrlistFieldsXFNew_Name

s[1].AddTail("品种数"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("rq");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("日期"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("jsfs");mXFNew_pstrlistFieldsXFNew_Name s[1].AddTail("结算方式"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("isXFNew_jq");mXFNew_pstrlistFieldsXFN ew_Names[1].AddTail("是否结清(-10)"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("czy");mXFNew_pstrlistFieldsXFNew_Name s[1].AddTail("操作员"); mXFNew_pstrlistFieldsXFNew_Names[0].AddTail("jsr");mXFNew_pstrlistFieldsXFNew_Names [1].AddTail("经手人"); } CDataXS::~CDataXS() { delete []mXFNew_pstrlistFieldsXFNew_Names; mXFNew_pstrlistFieldsXFNew_Names=NULL; } bool CDataXS::IsNumberField(CString field) { return (field=="ys"||field=="ws"|| field=="ss"||field=="wf"|| field=="sf"||field=="yf"); } C++源码 =>> Part Five #if !defined(AFXXFNew_MSCHARTXFNew_HXFNew_XFNew_8FDA8672XFNew_6D06XF New_4F02XFNew_9ACAXFNew_A86BD19D828CXFNew_XFNew_INCLUDEDXFNew_) #define AFXXFNew_MSCHARTXFNew_HXFNew_XFNew_8FDA8672XFNew_6D06XFNew_4F02X FNew_9ACAXFNew_A86BD19D828CXFNew_XFNew_INCLUDEDXFNew_ #if XFNew_MSCXFNew_VER > 1000 #pragma once #endif XFNew_MSCXFNew_VER > 1000 Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ NOTE: Do not modify the contents of this file. If this class is regenerated by Microsoft Visual C++, your modifications will be overwritten. Dispatch interfaces referenced by this interface class CVcTitle; class CVcFootnote; class CVcBackdrop; class CVcLegend; class CVcDataGrid; class CVcPlot; CMSChart wrapper class class CMSChart : public CWnd

{ protected: DECLAREXFNew_DYNCREATE(CMSChart) public: CLSID const& GetClsid() { static CLSID const clsid = { 0x3a2b370c, 0xba0a, 0x11d1, { 0xb1, 0x37, 0x0, 0x0, 0xf8, 0x75, 0x3f, 0x5d } }; return clsid; } virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd pParentWnd, UINT nID, CCreateContext pContext = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); } BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd pParentWnd, UINT nID, CFile pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID, pPersist, bStorage, bstrLicKey); } Attributes public: Operations public: BOOL GetAutoIncrement(); void SetAutoIncrement(BOOL bNewValue); BOOL GetRandomFill(); void SetRandomFill(BOOL bNewValue); long GetChartType(); void SetChartType(long nNewValue); short GetColumn(); void SetColumn(short nNewValue); short GetColumnCount(); void SetColumnCount(short nNewValue); CString GetColumnLabel(); void SetColumnLabel(LPCTSTR lpszNewValue); short GetColumnLabelCount(); void SetColumnLabelCount(short nNewValue); short GetColumnLabelIndex(); void SetColumnLabelIndex(short nNewValue); CString GetData(); void SetData(LPCTSTR lpszNewValue);

CString GetFootnoteText(); void SetFootnoteText(LPCTSTR lpszNewValue); BOOL GetRepaint(); void SetRepaint(BOOL bNewValue); short GetRow(); void SetRow(short nNewValue); short GetRowCount(); void SetRowCount(short nNewValue); CString GetRowLabel(); void SetRowLabel(LPCTSTR lpszNewValue); short GetRowLabelCount(); void SetRowLabelCount(short nNewValue); short GetRowLabelIndex(); void SetRowLabelIndex(short nNewValue); short GetSeriesColumn(); void SetSeriesColumn(short nNewValue); long GetSeriesType(); void SetSeriesType(long nNewValue); BOOL GetShowLegend(); void SetShowLegend(BOOL bNewValue); long GetDrawMode(); void SetDrawMode(long nNewValue); long GetBorderStyle(); void SetBorderStyle(long nNewValue); BOOL GetEnabled(); void SetEnabled(BOOL bNewValue); long GetHWnd(); CVcTitle GetTitle(); CVcFootnote GetFootnote(); CString GetTitleText(); void SetTitleText(LPCTSTR lpszNewValue); BOOL GetStacking(); void SetStacking(BOOL bNewValue); long GetTextLengthType(); void SetTextLengthType(long nNewValue); BOOL GetAllowSelections(); void SetAllowSelections(BOOL bNewValue); BOOL GetAllowSeriesSelection(); void SetAllowSeriesSelection(BOOL bNewValue); BOOL GetAllowDynamicRotation(); void SetAllowDynamicRotation(BOOL bNewValue); short GetActiveSeriesCount(); CVcBackdrop GetBackdrop(); CVcLegend GetLegend();

CVcDataGrid GetDataGrid(); CVcPlot GetPlot(); BOOL GetAllowDithering(); void SetAllowDithering(BOOL bNewValue); BOOL GetDoSetCursor(); void SetDoSetCursor(BOOL bNewValue); BOOL GetChart3d(); VARIANT GetChartData(); void SetChartData(const VARIANT& newValue); long GetMousePointer(); void SetMousePointer(long nNewValue); void Refresh(); void EditPaste(); void EditCopy(); void Layout(); void ToDefaults(); void SelectPart(short part, short index1, short index2, short index3, short index4); void GetSelectedPart(short part, short index1, short index2, short index3, short index4); void TwipsToChartPart(long xVal, long yVal, short part, short index1, short index2, short index3, short index4); long GetOLEDragMode(); void SetOLEDragMode(long nNewValue); long GetOLEDropMode(); void SetOLEDropMode(long nNewValue); void OLEDrag(); LPUNKNOWN GetDataSource(); void SetRefDataSource(LPUNKNOWN newValue); CString GetDataMember(); void SetDataMember(LPCTSTR lpszNewValue); }; {{AFXXFNew_INSERTXFNew_LOCATION}} Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif !defined(AFXXFNew_MSCHARTXFNew_HXFNew_XFNew_8FDA8672XFNew_6D0 6XFNew_4F02XFNew_9ACAXFNew_A86BD19D828CXFNew_XFNew_INCLUDEDXFNew_ )



更多相关文章:
40个经典C++程序
40个经典C++程序_工学_高等教育_教育专区。经典的C++程序,很适合初学者。...2.程序源代码: main() { long f1,f2; int i; f1=f2=1; for(i=1;i...
C++经典程序代码大全
C++经典程序代码大全_IT/计算机_专业资料。C++程序 //根据半径计算圆的周长和面积 #include <iostream.h> const float PI=3.1416; //声明常量(只读变量)PI 为...
C++语言计算器源代码
C++语言计算器源代码_IT/计算机_专业资料。C++语言编写。 。 #include<iostream...C++语言编写。 。 #include<iostream> #include<cmath> #include<string> using...
TICTACTOE井字棋游戏C++源代码
TICTACTOE井字棋游戏C++源代码_计算机软件及应用_IT/计算机_专业资料 暂无评价|0人阅读|0次下载|举报文档 TICTACTOE井字棋游戏C++源代码_计算机软件及应用_IT/...
五子棋源代码(C++),完美版
五子棋源代码(C++),完美版_计算机软件及应用_IT/计算机_专业资料 暂无评价|0人阅读|0次下载|举报文档五子棋源代码(C++),完美版_计算机软件及应用_IT/计算机_...
C++俄罗斯方块源码(完整功能版)
C++俄罗斯方块源码(完整功能版)_计算机软件及应用_IT/计算机_专业资料。包含俄罗斯方块的源代码和效果图。功能包括设置、排行榜和错误处理。总计627行。通过VC6.0调试...
DES算法用C++实现的源代码
DES算法用C++实现的源代码_工学_高等教育_教育专区 暂无评价|0人阅读|0次下载|举报文档 DES算法用C++实现的源代码_工学_高等教育_教育专区。DES算法用C++实现的...
C++代码规范
46 深圳市赛迅科技有限公司 2 / 48 www.sunspeedy.com 深圳市赛迅科技研发部 C/C++代码规范 文件结构文件头注释所有 C++的源文件均必须包含一个规范的文件头,...
C++程序代码
//Linked list using reference "&", C++ style #include <iostream> #include <cstring> using namespace std; const int MAX_STR_LEN = 32; struct Stu...
c++例题源代码
c++例题源代码_电脑基础知识_IT/计算机_专业资料。例 3.1 输入一个整数,输出其绝对值 #include <iostream> using namespace std; void main() { int number; ...
更多相关标签:

All rights reserved Powered by 甜梦文库 9512.net

copyright ©right 2010-2021。
甜梦文库内容来自网络,如有侵犯请联系客服。zhit325@126.com|网站地图