ebook50-14

Size: px
Start display at page:

Download "ebook50-14"

Transcription

1 14 M F C M F C 78 M F C 79 M F C 80 D e l e t e Delete ( ) 81 M F C Cut Paste C E d i t C l a s s Wi z a r d C E d i t C l a s s Wi z a r d W M _ R B U T TO N D O W N 2. 1) ) W M _ R B U T TO N D O W N

2 264 void CWzdEdit::OnRButtonDown(UINT nflags, CPoint point) CMenu menu; // load a menu from the resources m e n u. L o a d M e n u ( I D R _ S E L E C T I O N _ M E N U ); // get a pointer to actual popup menu CMenu* ppopup = menu.getsubmenu(0); U n d o 3) C E d i t CanUndo ( ) U n d o UINT nundo=(canundo()? 0 : MF_GRAY E D ) ; ppopup->enablemenuitem(id_edit_undo, MF_BYCOMMAND nundo); 4) CEdit::GetSel ( ) C u t C o p y D e l e t e int beg,end; G e t S e l ( b e g, e n d ) ; UINT nsel=((beg!=end)? 0 : MF_GRAY E D ) ; p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ C U T, MF_BYCOMMAND nsel); p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ C O P Y, MF_BYCOMMAND nsel); ppopup->enablemenuitem(id_edit_clear, MF_BYCOMMAND nsel); 5) P a s t e UINT npaste=(::isclipboardformatavailable(cf_text)? 0 : M F _ G R AY E D ) ; p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ PASTE, MF_BYCOMMAND npaste); 6) // pop up the menu CPoint pt; G e t C u r s o r P o s ( & p t ) ; p P o p u p - > Tr a c k P o p u p M e n u ( T P M _ R I G H T B U T TON, pt.x, pt.y, this); p P o p u p - > D e s t r o y M e n u ( ) ; CEdit::OnRButtonDown(nFlags, point); 3. 1) I D W M _ C O M M A N D I D ON_COMMAND(ID_EDIT_UNDO, OnUndo) O N _ C O M M A N D ( I D _ E D I T _ C U T, OnCut) O N _ C O M M A N D ( I D _ E D I T _ C O P Y, OnCopy) O N _ C O M M A N D ( I D _ E D I T _ PASTE, OnPaste) ON_COMMAND(ID_EDIT_CLEAR, OnDelete) ON_COMMAND(ID_EDIT_SELECT_ALL, OnSelectAll) 2) CEdit ( )

3 h / / A F X _ M S G ( C W z d E d i t ) afx_msg void OnRButtonDown(UINT nflags, CPoint point); / / A F X _ M S G afx_msg void OnUndo(void)Undo();; afx_msg void OnCut(void)Cut();; afx_msg void OnCopy(void)Copy();; afx_msg void OnPaste(void)Paste();; afx_msg void OnDelete(void)Clear();; afx_msg void OnSelectAll(void)SetSel(0,-1);; D E C L A R E _ M E S S A G E _ M A P ( ) Select All 3) 21 CD C D Te s t / W z d #if!defined(afx_wzdedit_h 19B437E6_E7F5_11 D 1 _ A 1 8 D _ D C B 3 C 8 5 E B D 3 4 I N C L U D E D _ ) #define AFX_WZDEDIT_H 19B437E6_E7F5_11 D 1 _ A 1 8 D _ D C B 3 C 8 5 E B D 3 4 I N C L U D E D _ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 // WzdEdit.h : header file / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / // CWzdEdit window class CWzdEdit : public CEdit // Construction p u b l i c : C W z d E d i t (); // Attributes p u b l i c : // Operations p u b l i c :

4 266 // Overrides // ClassWizard generated virtual function overrides // A F X _ V I RT U A L ( C W z d E d i t ) // A F X _ V I RT U A L // Implementation p u b l i c : virtual ~CWzdEdit(); // Generated message map functions p r o t e c t e d : // A F X _ M S G ( C W z d E d i t ) afx_msg void OnRButtonDown(UINT nflags, CPoint point); // A F X _ M S G afx_msg void OnUndo(void)Undo();; afx_msg void OnCut(void)Cut();; afx_msg void OnCopy(void)Copy();; afx_msg void OnPaste(void)Paste();; afx_msg void OnDelete(void)Clear();; afx_msg void OnSelectAll(void)SetSel(0,-1);; D E C L A R E _ M E S S A G E _ M A P () ; ///////////////////////////////////////////////////////////////////////////// // A F X _ I N S E RT _ L O C AT I O N // Microsoft Developer Studio will insert additional declarations immediately // before the previous line. #endif //!defined( A F X _ W Z D E D I T _ H 1 9 B E 6 _ E 7 F 5 _ 11 D 1 _ A 1 8 D _ D C B 3 C 8 5 E B D 3 4 I N C L U D E D _ ) // WzdEdit.cpp : implementation file / / #include "stdafx.h" #include "wzd.h" #include "WzdEdit.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = FILE ; # e n d i f / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / // CWzdEdit C W z d E d i t : : C W z d E d i t ( )

5 C W z d E d i t : : ~ C W z d E d i t ( ) BEGIN_MESSAGE_MAP(CWzdEdit, CEdit) // A F X _ M S G _ M A P ( C W z d E d i t ) O N _ W M _ R B U T TO N D O W N () // A F X _ M S G _ M A P ON_COMMAND(ID_EDIT_UNDO, OnUndo) O N _ C O M M A N D ( I D _ E D I T _ C U T, OnCut) O N _ C O M M A N D ( I D _ E D I T _ C O P Y, OnCopy) O N _ C O M M A N D ( I D _ E D I T _ PASTE, OnPaste) ON_COMMAND(ID_EDIT_CLEAR, OnDelete) ON_COMMAND(ID_EDIT_SELECT_ALL, OnSelectAll) E N D _ M E S S A G E _ M A P () / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / // CWzdEdit message handlers void CWzdEdit::OnRButtonDown(UINT nflags, CPoint point) CMenu menu; // load a menu from the resources m e n u. L o a d M e n u ( I D R _ S E L E C T I O N _ M E N U ); // get a pointer to actual popup menu CMenu* ppopup = menu.getsubmenu(0); // enable/disable Undo command UINT nundo=(canundo()? 0 : MF_GRAY E D ) ; ppopup->enablemenuitem(id_edit_undo, MF_BYCOMMAND nundo); // enable/disable selection commands int beg,end; G e t S e l ( b e g, e n d ); UINT nsel=((beg!=end)? 0 : MF_GRAY E D ); p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ C U T, MF_BYCOMMAND nsel); p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ C O P Y, MF_BYCOMMAND nsel); ppopup->enablemenuitem(id_edit_clear, MF_BYCOMMAND nsel); // enable/disable Paste command UINT npaste=(::isclipboardformatavailable(cf_text)? 0 : MF_GRAY E D ) ; p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ PASTE, MF_BYCOMMAND npaste); // pop up the menu CPoint pt; G e t C u r s o r P o s ( & p t ) ;

6 268 p P o p u p - > Tr a c k P o p u p M e n u ( T P M _ R I G H T B U T TON, pt.x, pt.y, this); p P o p u p - > D e s t r o y M e n u ( ) ; CEdit::OnRButtonDown(nFlags, point); Cat Paste C E d i t C R i c h E d i t C t r l C M e n u 14-2 C R i c h E d i t C t r l 1. 1) M F C InitInstance ( ) BOOL CWzdApp::InitInstance() A f x I n i t R i c h E d i t ( ) ; : : : 2) ) C l a s s Wi z a r d C R i c h E d i t C t r l C l a s s Wi z a r d W M - R B U T TO N D O W N 2. 1) W M _ R B U T TO N D O W N void CWzdRichEditCtrl::OnRButtonDown(UINT nflags, CPoint point) CMenu menu; // load a menu from the resources m e n u. L o a d M e n u ( I D R _ S E L E C T I O N _ M E N U ) ; // get a pointer to actual popup menu

7 CMenu* ppopup = menu.getsubmenu(0); U n d o 2) C R i c h E d i t C t r l CanUndo ( ) U n d o // enable/disable Undo command UINT nundo=(canundo()? 0 : MF_GRAY E D ) ; ppopup->enablemenuitem(id_edit_undo, MF_BYCOMMAND nundo); 3) C R i c h E d i t C t r l :: G e t S e l e c t i o n Type ( ) S E L _ E M P T Y C u t C o p y D e l e t e UINT nsel=((getselectiontype()!=sel_empty)? 0 : MF_GRAY E D ) ; p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ C U T, MF_BYCOMMAND nsel); p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ C O P Y, MF_BYCOMMAND nsel); ppopup->enablemenuitem(id_edit_clear, MF_BYCOMMAND nsel); 4) P a s t e CRichEditCtrl::CanPaste ( ) UINT npaste=(canpaste()? 0 : MF_GRAY E D ) ; p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ PASTE, MF_BYCOMMAND npaste); 5) CPoint pt; G e t C u r s o r P o s ( & p t ) ; p P o p u p - > Tr a c k P o p u p M e n u ( T P M _ R I G H T B U T TON, pt.x, pt.y, this); p P o p u p - > D e s t r o y M e n u ( ) ; CRichEditCtrl::OnRButtonDown(nFlags, point); 3. 1) I D W M _ C O M M A N D I D ON_COMMAND(ID_EDIT_UNDO, OnUndo) O N _ C O M M A N D ( I D _ E D I T _ C U T, OnCut) O N _ C O M M A N D ( I D _ E D I T _ C O P Y, OnCopy) O N _ C O M M A N D ( I D _ E D I T _ PASTE, OnPaste) ON_COMMAND(ID_EDIT_CLEAR, OnDelete) ON_COMMAND(ID_EDIT_SELECT_ALL, OnSelectAll) 2) C R i c h E d i t C t r l. h / / A F X _ M S G ( C W z d E d i t ) afx_msg void OnRButtonDown(UINT nflags, CPoint point); / / A F X _ M S G afx_msg void OnUndo(void)Undo();; afx_msg void OnCut(void)Cut();; afx_msg void OnCopy(void)Copy();; afx_msg void OnPaste(void)Paste();; afx_msg void OnDelete(void)Clear();; afx_msg void OnSelectAll(void)SetSel(0,-1);;

8 270 D E C L A R E _ M E S S A G E _ M A P ( ) Select All 3) M F C C u t C o p y P a s t e F o n t ( ) P a r a g r a p h ( ) CD C D Te s t / W z d #if!defined( A F X _ W Z D R I C H E D I T C T R L _ H 1 9 B E 7 _ E 7 F 5 _ 11 D 1 _ A 1 8 D _ D C B 3 C 8 5 E B D 3 4 I N C L U D E D _ ) #define AFX_WZDRICHEDITCTRL_H 19B437E7_E7F5_11 D 1 _ A 1 8 D _ D C B 3 C 8 5 E B D 3 4 I N C L U D E D _ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 // WzdRichEditCtrl.h : header file / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / // CWzdRichEditCtrl window class CWzdRichEditCtrl : public CRichEditCtrl // Construction p u b l i c : C W z d R i c h E d i t C t r l ( ) ; // Attributes p u b l i c : // Operations p u b l i c : // Overrides // ClassWizard generated virtual function overrides / / A F X _ V I RT U A L ( C W z d R i c h E d i t C t r l ) / / A F X _ V I RT U A L

9 // Implementation p u b l i c : virtual ~CWzdRichEditCtrl(); // Generated message map functions p r o t e c t e d : // A F X _ M S G ( C W z d R i c h E d i t C t r l ) afx_msg void OnRButtonDown(UINT nflags, CPoint point); // A F X _ M S G afx_msg void OnUndo(void)Undo();; afx_msg void OnCut(void)Cut();; afx_msg void OnCopy(void)Copy();; afx_msg void OnPaste(void)Paste();; afx_msg void OnDelete(void)Clear();; afx_msg void OnSelectAll(void)SetSel(0,-1);; D E C L A R E _ M E S S A G E _ M A P () ; ///////////////////////////////////////////////////////////////////////////// // A F X _ I N S E RT _ L O C AT I O N // Microsoft Developer Studio will insert additional declarations immediately // before the previous line. #endif //!defined( A F X _ W Z D R I C H E D I T C T R L _ H 19 B 437 E 7 _ E 7 F 5 _ 11 D 1 _ A 18 D _ D C B 3 C 85 E B D 34 I N C L U D E D _) // WzdRichEditCtrl.cpp : implementation file // #include "stdafx.h" #include "wzd.h" #include "WzdRichEditCtrl.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = FILE ; # e n d i f / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / // CWzdRichEditCtrl C W z d R i c h E d i t C t r l : : C W z d R i c h E d i t C t r l ( ) C W z d R i c h E d i t C t r l : : ~ C W z d R i c h E d i t C t r l ( ) BEGIN_MESSAGE_MAP(CWzdRichEditCtrl, CRichEditCtrl)

10 272 / / A F X _ M S G _ M A P ( C W z d R i c h E d i t C t r l ) O N _ W M _ R B U T TO N D O W N ( ) / / A F X _ M S G _ M A P ON_COMMAND(ID_EDIT_UNDO, OnUndo) O N _ C O M M A N D ( I D _ E D I T _ C U T, OnCut) O N _ C O M M A N D ( I D _ E D I T _ C O P Y, OnCopy) O N _ C O M M A N D ( I D _ E D I T _ PASTE, OnPaste) ON_COMMAND(ID_EDIT_CLEAR, OnDelete) ON_COMMAND(ID_EDIT_SELECT_ALL, OnSelectAll) E N D _ M E S S A G E _ M A P ( ) / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / // CWzdRichEditCtrl message handlers void CWzdRichEditCtrl::OnRButtonDown(UINT nflags, CPoint point) CMenu menu; // load a menu from the resources m e n u. L o a d M e n u ( I D R _ S E L E C T I O N _ M E N U ); // get a pointer to actual popup menu CMenu* ppopup = menu.getsubmenu(0); // enable/disable Undo command UINT nundo=(canundo()? 0 : MF_GRAY E D ) ; ppopup->enablemenuitem(id_edit_undo, MF_BYCOMMAND nundo); // enable/disable selection commands UINT nsel=((getselectiontype()!=sel_empty)? 0 : MF_GRAY E D ) ; p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ C U T, MF_BYCOMMAND nsel); p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ C O P Y, MF_BYCOMMAND nsel); ppopup->enablemenuitem(id_edit_clear, MF_BYCOMMAND nsel); // enable/disable Paste command UINT npaste=(canpaste()? 0 : MF_GRAY E D ) ; p P o p u p - > E n a b l e M e n u I t e m ( I D _ E D I T _ PASTE, MF_BYCOMMAND npaste); // pop up the menu CPoint pt; G e t C u r s o r P o s ( & p t ) ; p P o p u p - > Tr a c k P o p u p M e n u ( T P M _ R I G H T B U T TON, pt.x, pt.y, this); p P o p u p - > D e s t r o y M e n u ( ) ; CRichEditCtrl::OnRButtonDown(nFlags, point);

11 C S e l e c t i o n 1) Developer Studio C O b j e c t C S e l e c t i o n Insert/New Class New Class Ty p e Generic Class 2) C W z d S e l e c t : : C W z d S e l e c t ( ) m_clipboardformat = ::RegisterClipboardFormat("CWzdInfo1"); 3) Select ( ) Select ( ) void CWzdSelect::Select(CWzdInfo1 *pinfo) m _ p A c t i v e S e l e c t i o n = p I n f o ; if (!m_wzdselectionlist.find(pinfo)) m _ W z d S e l e c t i o n L i s t. A d d Ta i l ( p I n f o ) ; 4) Serialize ( ) void CWzdSelect::Serialize(CArchive& ar) int ncount; C O b j e c t : : S e r i a l i z e ( a r ) ; i f ( a r. I s S t o r i n g ( ) ) ncount = m_wzdselectionlist.getcount(); ar << ncount; for (POSITION pos = m_wzdselectionlist.getheadposition(); pos;) m _ W z d S e l e c t i o n L i s t. G e t N e x t ( p o s ) - > S e r i a l i z e ( a r ) ;

12 274 e l s e ar >> ncount; while (ncount-- > 0) CWzdInfo1* pinfo = new CWzdInfo1; p I n f o - > S e r i a l i z e ( a r ) ; m _ W z d S e l e c t i o n L i s t. A d d Ta i l ( p I n f o ) ; 5) CutSelections ( ) p L i s t N U L L CopySelections ( ) void CWzdSelect::CutSelections(CList<CWzdInfo1*, CWzdInfo1*> *plist) C o p y S e l e c t i o n s ( p L i s t ) ; CopySelections ( ) 2. CopySelections ( ) 1) CopySelections ( ) void CWzdSelect::CopySelections(CList<CWzdInfo1*, CWzdInfo1*> *plist /*=NULL*/) if (m_wzdselectionlist.getcount() <= 0) return; 2) C S h a r e d F i l e CSharedFile file; CArchive ar(&file, CArchive::store); S e r i a l i z e ( a r ) ; a r. C l o s e ( ) ; 3) COleDataSource *pds = new COleDataSource(); pds->cacheglobaldata(m_clipboardformat, file.detach()); p D S - > S e t C l i p b o a r d ( ) ; 4) p L i s t // if cutting, delete items in selection list from document if (plist) for (POSITION pos=m_wzdselectionlist.getheadposition();pos;) CWzdInfo1 *pinfo=m_wzdselectionlist.getnext(pos);

13 POSITION posx; if (posx=plist->find(pinfo)) p L i s t - > R e m o v e A t ( p o s x ) ; delete pinfo; 5) m _ W z d S e l e c t i o n L i s t. R e m o v e A l l ( ) ; m _ p A c t i v e S e l e c t i o n = N U L L ; 3. 1) PasteClipboard ( ) void CWzdSelect::PasteClipboard(CList<CWzdInfo1*, CWzdInfo1*> *plist) // reset selections m _ W z d S e l e c t i o n L i s t. R e m o v e A l l ( ) ; m _ p A c t i v e S e l e c t i o n = N U L L ; 2) COleDataObject object; o b j e c t. A t t a c h C l i p b o a r d ( ) ; CFile* pfile = object.getfiledata(m_clipboardformat); if (!pfile) return; CArchive ar(pfile, CArchive::load); S e r i a l i z e ( a r ) ; a r. C l o s e ( ) ; delete pfile; //deletes file 3) for (POSITION pos=m_wzdselectionlist.getheadposition();pos;) m _ p A c t i v e S e l e c t i o n = m _ W z d S e l e c t i o n L i s t. G e t N e x t ( p o s ) ; p L i s t - > A d d Ta i l ( m _ p A c t i v e S e l e c t i o n ) ; 4. 1) C S e l e c t i o n / / / / / / / / / / / / / / / / / / / / / / / / / / // WzdVi e w. h x p r i v a t e : CWzdSelect m_select; 2) C S e l e c t i o n void CWzdVi e w : : O n S e l e c t ( )

14 276 m _ s e l e c t. S e l e c t ( G e t D o c u m e n t ( ) - > G e t I n f o 1 L i s t ( ) - > G e t H e a d ( ) ) ; void CWzdVi e w : : O n E d i t C u t ( ) m _ s e l e c t. C u t S e l e c t i o n s ( G e t D o c u m e n t ( ) - > G e t I n f o 1 L i s t ( ) ) ; void CWzdView::OnUpdateEditCut(CCmdUI* pcmdui) p C m d U I - > E n a b l e ( m _ s e l e c t. S e l e c t i o n C o u n t ( ) ) ; void CWzdVi e w : : O n E d i t C o p y ( ) m _ s e l e c t. C o p y S e l e c t i o n s ( ) ; void CWzdView::OnUpdateEditCopy(CCmdUI* pcmdui) p C m d U I - > E n a b l e ( m _ s e l e c t. S e l e c t i o n C o u n t ( ) ) ; void CWzdVi e w : : O n E d i t P a s t e ( ) m _ s e l e c t. P a s t e C l i p b o a r d ( G e t D o c u m e n t ( ) - > G e t I n f o 1 L i s t ( ) ) ; void CWzdView::OnUpdateEditPaste(CCmdUI* pcmdui) p C m d U I - > E n a b l e ( m _ s e l e c t. C a n P a s t e C l i p b o a r d ( ) ) ; PasteClipboard ( ) X Y M F C C Tr a c k e r CD C D W z d S e l e c t. c p p. Te s t / W z d E d i t Z #ifndef WZDSELECT_H #define WZDSELECT_H #include "afxtempl.h" #include "WzdInfo1.h" class CWzdSelect : public CObject

15 p u b l i c : C W z d S e l e c t ( ) ; ~ C W z d S e l e c t ( ) ; void Select(CWzdInfo1 *pinfo); int SelectionCount(); void CutSelections(CList<CWzdInfo1*,CWzdInfo1*> *plist); void CopySelections(CList<CWzdInfo1*,CWzdInfo1*> *plist=null); BOOL CanPasteClipboard(); void PasteClipboard(CList<CWzdInfo1*,CWzdInfo1*> *plist); void Serialize(CArchive& archive); p r i v a t e : int m_clipboardformat; CWzdInfo1 *m_pactiveselection; CList<CWzdInfo1*,CWzdInfo1*> m_wzdselectionlist; ; # e n d i f // WzdSelect.cpp : implementation of the CWzdSelect class / / #include "stdafx.h" #include <afxadv. h > #include <afxole.h> #include "WzdSelect.h" / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / // CWzdSelect C W z d S e l e c t :: C W z d S e l e c t () m _ p A c t i v e S e l e c t i o n = N U L L ; m_clipboardformat = ::RegisterClipboardFormat("CWzdInfo1"); C W z d S e l e c t :: ~ C W z d S e l e c t () //////////////////////////////////////////////////////////////////// //CWzdSelect Methods void CWzdSelect::Serialize(CArchive& ar) int ncount; C O b j e c t :: S e r i a l i z e ( a r ); i f ( a r. I s S t o r i n g ()) ncount = m_wzdselectionlist.getcount();

16 278 ar << ncount; for (POSITION pos = m_wzdselectionlist.getheadposition(); pos;) m _ W z d S e l e c t i o n L i s t. G e t N e x t ( p o s )- > S e r i a l i z e ( a r ); e l s e ar >> ncount; while (ncount-- > 0) CWzdInfo1* pinfo = new CWzdInfo1; p I n f o - > S e r i a l i z e ( a r ) ; m _ W z d S e l e c t i o n L i s t. A d d Ta i l ( p I n f o ) ; void CWzdSelect::Select(CWzdInfo1 *pinfo) m _ p A c t i v e S e l e c t i o n = p I n f o ; if (!m_wzdselectionlist.find(pinfo)) m _ W z d S e l e c t i o n L i s t. A d d Ta i l ( p I n f o ) ; int CWzdSelect::SelectionCount() return m_wzdselectionlist.getcount(); void CWzdSelect::CutSelections(CList<CWzdInfo1*,CWzdInfo1*> *plist) C o p y S e l e c t i o n s ( p L i s t ) ; void CWzdSelect::CopySelections(CList<CWzdInfo1*,CWzdInfo1*> *plist /*=NULL*/) if (m_wzdselectionlist.getcount() <= 0) return; // create an archive to a memory file and selection list to it CSharedFile file; CArchive ar(&file, CArchive::store); S e r i a l i z e ( a r ) ; // close archive and put it in clipboard a r. C l o s e ( ) ; COleDataSource *pds = new COleDataSource(); pds->cacheglobaldata(m_clipboardformat, file.detach()); p D S - > S e t C l i p b o a r d ( ) ;

17 // if cutting, delete items in selection list from document if (plist) for (POSITION pos=m_wzdselectionlist.getheadposition();pos;) CWzdInfo1 *pinfo=m_wzdselectionlist.getnext(pos); POSITION posx; if (posx=plist->find(pinfo)) p L i s t - > R e m o v e A t ( p o s x ) ; delete pinfo; // kill selections m _ W z d S e l e c t i o n L i s t. R e m o v e A l l ( ) ; m _ p A c t i v e S e l e c t i o n = N U L L ; BOOL CWzdSelect::CanPasteClipboard() COleDataObject object; return (object.attachclipboard() && o b j e c t. I s D a t a Av a i l a b l e ( m _ c l i p b o a r d F o r m a t ) ) ; void CWzdSelect::PasteClipboard(CList<CWzdInfo1*,CWzdInfo1*> *plist) // reset selections m _ W z d S e l e c t i o n L i s t. R e m o v e A l l ( ) ; m _ p A c t i v e S e l e c t i o n = N U L L ; // open archive to clipboard and serialize into selection list COleDataObject object; o b j e c t. A t t a c h C l i p b o a r d ( ) ; CFile* pfile = object.getfiledata(m_clipboardformat); if (!pfile) return; CArchive ar(pfile, CArchive::load); S e r i a l i z e ( a r ) ; a r. C l o s e ( ) ; delete pfile; //deletes file // add selection back into document for (POSITION pos=m_wzdselectionlist.getheadposition();pos;) m _ p A c t i v e S e l e c t i o n = m _ W z d S e l e c t i o n L i s t. G e t N e x t ( p o s ); p L i s t - > A d d Ta i l ( m _ p A c t i v e S e l e c t i o n );

18 M F C M F C C A r r a y C A r r a y C W z d I n f o C A r r a y ( int, float ) 1. 1) # include <afxtempl.h> 2) C A r r a y CArray <CWzdInfo, CWzdInfo&> m_wzdclassarray; 3) C A r r a y m _ W z d C l a s s A r r a y.setsize(10); //sets size of array 2. 1) ( ) 2) CWzdInfo & operator = (CWzdInfo & src); 3) CWzdInfo& CWzdInfo::operator=(CWzdInfo& src) if(this!= &src) m_sname = src.m_sname; // repeat for every member variable in the class : : : return *this; 4) m _ W z d C l a s s A r r a y [ 2 ] = i n f o 1 ; m _ W z d C l a s s A r r a y [ 3 ] = i n f o 2 ; i n f o 1 i n f o 2 C w z d I n f o 5)

19 for (int i=0;i<m_wzdclassarray. G e t U p p e r B o u n d (); i + + ) i n f o = m _ W z d C l a s s A r r a y [ i ]; ///// 6) info=m_wzdclassarray[3]; //remove class object at index 3 m _ W z d C l a s s A r r a y. R e m o v e A t ( 3 ) ; 7) m _ W z d C l a s s A r r a y.removeall ( ) C A r r a y 8) while (m_wzdptrarray. G e t U p p e r B o u n d ( ) > - 1 ) delete m_wzdptrarray[0]; m _ W z d P t r A r r a y. R e m o v e A t ( 0 ) ; C A r r a y array [ ] C A r r a y C A r r a y C A r r a y C L i s t C M a p C M a p C L i s t C L i s t C M a p CD C D W z d Vi e w. c p p O n TestWzd ( ) Te s t / W z d M F C M F C C L i s t C L i s

20 282 C W z d I n f o C L i s t ( i n t f l o a t ) 1. 1) # include <afxtemp1.h> 2) C L i s t CList <CWzdInfo, CWzdInfo &> m_wzdclasslist 2. 1) ( ) 2) CWzdInfo & operator=(cwzdinfo & src); 3) CWzdInfo& CWzdInfo::operator=(CWzdInfo& src) if(this!= &src) m_sname = src.m_sname; // repeat for every member variable in the class : : : return *this; 4) m _ W z d L i s t. A d d Tail(info1); // adds to the tail of the list m_wzdlist.addhead(info2); // adds to the head of the list i n f o 1 i n f o 2 C W z d I n f o 5) for (POSITION pos=m_wzdlist.getheadposition();pos;) i n f o = m _ W z d L i s t. G e t N e x t ( p o s ) ; / / / / / 6) pos=m_wzdlist.findindex(1); // find 2nd element in list (zero based) m_wzdlist.removeat(pos); // remove from class list 7) m_wzdclasslist.removeall ( );

21 ) while (!m_wzdptrlist.isempty()) delete m_wzdptrlist.removehead(); C L i s t C A r r a y C M a p CD C D W z d Vi e w. c p p O n TestWzd ( ) Te s t / W z d M F C C M a p C M a C M a p C W z d I n f o C M a p ( i n t f l o a t ) 1. 1) # include <afxtempl.h> 2) C M a p C W z d I n f o CMap <int, int, CWzdInfo, CWzdInfo&> m_wzdintto C l a s s M a p ; 3) C S t r i n g C W z d I n f o CMap <CString, LPCSTR, CWzdInfo, CWzdInfo&> m_wzdstringto C l a s s M a p ; L P C S T R 2.

22 284 1) ( ) 2) CWzdInfo& operator=(cwzdinfo& src); 3) CWzdInfo& CWzdInfo::operator=(CWzdInfo& src) if(this!= &src) m_sname = src.m_sname; // repeat for every member variable in the class : : : return *this; 4) m _ W z d I n t To C l a s s M a p [ 3 ] = i n f o 2 ; m _ W z d S t r i n g To P t r M a p [ " t h e s e " ] = i n f o 1 ; i n f o 1 i n f o 2 C W z d I n f o 5) C S t r i n g CString str; for (POSITION pos = m_wzdstringto C l a s s M a p. G e t S t a r t P o s i t i o n ( ) ; p o s ; ) m _ W z d S t r i n g To P t r M a p. G e t N e x t A s s o c ( p o s, s t r, p I n f o ) ; // str contains key // pinfo contains pointer to data 6) m _ W z d I n t To C l a s s M a p. R e m o v e K e y ( 3 ) ; m _ W z d S t r i n g To C l a s s M a p. R e m o v e K e y ( " t h e m " ) ; 7) m _ W z d I n t To C l a s s M a p. R e m o v e A l l ( ) ; m _ W z d S t r i n g To C l a s s M a p. R e m o v e A l l ( ) ; C M a p 8) CWzdInfo *pinfo; for (pos = m_wzdstringtoptrmap.getstartposition(); pos;) m _ W z d S t r i n g To P t r M a p. G e t N e x t A s s o c ( p o s, s t r, p I n f o ) ; m _ W z d S t r i n g To P t r M a p. R e m o v e K e y ( s t r ) ; delete pinfo;

23 C M a p C h e c k s u m C M a p L P C S T R C S t r i n g CMap <CString, LPCSTR, CWzdInfo, CwzdInfo &> m_wzdstringto C l a s s M a p ; C M a p I n i t H a s h Table ( ) m _ W z d S t r i n g To P t r M a p. I n i t H a s h Table (50); // create 50 lists M F C C M a p C W n d C W n d FromHandle ( ) CD M F C h W n d C W n d M F C C W n d h W n d C W n d C D W z d Vi e w. c p p O n Te s t W z d Te s t / W z d A l t + D Developer Studio (Accelerator Editor) W M _ K E Y D O W N 1. 1) Workspace Vi e w Resource Vi e w A c c e l e r a t o r 2) I D 3) P r e TranslateMessage ( )

24 286 P r e TranslateMessage ( ) ( P r e TranslateMessage( ) ) W M _ K E Y D O W N W M _ S Y S K E Y D O W N A l t S h i f t - A l t W M _ S Y S K E Y D O W N ( C t r l - A l t ) W M _ K E Y D O W N 2. A l t S h i f t - A l t 1) C l a s s Wi z a r d ( ) P r e TranslateMessage ( ) 2) A l t S h i f t - A l t P r e TranslateMessage ( ) if (pmsg->message==wm_syskeydown) s w i t c h ( p M s g - > w P a r a m ) case VK_DELETE: S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ) ; return TRUE; // translated case VK_INSERT: S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ PA S T E ) ; return TRUE; // translated return CVi e w : : P r e Tr a n s l a t e M e s s a g e ( p M s g ) ; 3) S h i f t BOOL bshift=::getkeystate (VK_SHIFT)&0x8000; 3. 1) C t r l C t r l - A l t S h i f t - C t r l - A l t P r e TranslateMessage ( ) if (pmsg->message==wm_keydown) s w i t c h ( p M s g - > w P a r a m ) case VK_DELETE: S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ) ; return TRUE; // translated case VK_INSERT: S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ PA S T E ); return TRUE; // translated return CVi e w :: P r e Tr a n s l a t e M e s s a g e ( p M s g ); 2) S h i f t C t r l A l t BOOL bctrl=::getkeystate(vk_control)&0x8000; BOOL bshift=::getkeystate(vk_shift)&0x8000; BOOL balt=::getkeystate(vk_menu)&0x8000; P r e TranslateMessage ( )

25 P r e TranslateMessage ( ) W M _ K E Y D O W N W M _ S Y S K E Y D O W N P r e TranslateMessage ( ) W M _ K E Y D O W N W M _ S Y S K E Y D O W N CD C D W z d Vi e w. c p p P r e TranslateMessage ( ) C o n t r o l S h i f t A l t PreTranslateMessage ( ) BOOL CWzdVi e w : : P r e TranslateMessage(MSG* pmsg) // ALT key is not pressed or is pressed with CTRL key.... if (pmsg->message==wm_keydown) BOOL bctrl=::getkeystate(vk_control)&0x8000; BOOL bshift=::getkeystate(vk_shift)&0x8000; // only gets here if CTRL key is pressed BOOL balt=::getkeystate(vk_menu)&0x8000; s w i t c h ( p M s g - > w P a r a m ) case 'N': if (balt&&bshift) //&&bctrl assumed S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); else if (bshift&&bctrl) S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); else if (balt) //&&bctrl assumed S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); else if (bctrl) S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); else if (bshift) S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); e l s e S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); return TRUE; // translated case VK_ESCAPE: if (bshift) S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); return TRUE; // translated

26 288 case VK_DELETE: S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ) ; return TRUE; // translated case VK_INSERT: S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ PA S T E ); return TRUE; // translated // ALT key is pressed but not with CTRL key.... else if (pmsg->message==wm_syskeydown) BOOL bshift=::getkeystate(vk_shift)&0x8000; s w i t c h ( p M s g - > w P a r a m ) case 'N': if (bshift) S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); e l s e S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ); return TRUE; // translated case VK_DELETE: S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ C L E A R ) ; return TRUE; // translated case VK_INSERT: S e n d M e s s a g e ( W M _ C O M M A N D, I D _ E D I T _ PA S T E ) ; return TRUE; // translated return CVi e w : : P r e Tr a n s l a t e M e s s a g e ( p M s g ) ; M F C 1)

27 C Time time; t i m e = C Ti m e : : G e t C u r r e n t Ti m e ( ) ; 2) int year = time.getye a r ( ) ; int month = time.getmonth(); int day = time.getday(); int hour = time.gethour(); int minute = time.getminute(); int second = time.getsecond(); int DayOfWeek = time.getdayofwe e k ( ) ; 3) C TimeSpan timespan(0,0,1,0); // days,hours,minutes,seconds timespan = CTi m e : : G e t C u r r e n t Time() - time; 4) CString sdate,sti m e, s E l a p s e d Ti m e ; sdate = time.format("%m/%d/%y"); //ex: 12/10/98 s Time = time.format("%h:%m:%s"); //ex: 9:12:02 s E l a p s e d Time = timespan.format("%d:%h:%m:%s"); // %D is total elapsed days M F C s t r f t i m e C O l e D a t e Ti m e 1) C O l e D a t e Time datetime; datetime = COleDateTi m e : : G e t C u r r e n t Ti m e ( ) ; int DayOfYear = datetime.getdayofye a r ( ) ; 2) C O l e D a t e Time datetime; d a t e t i m e. P a r s e D a t e Time("12:12:23 27 January 93"); C Ti m e C O l e D a t e Ti m e C O l e D a t e Ti m e ( J u l i a n ) C Ti m e C O l e D a t e Ti m e D W O R D C O l e D a t e Ti m e CD C Ti m e C O l e D a t e Ti m e ( ) C D W z d Vi e w. c p p O n W z d Type ( ) O p t i o n s / W z d

ebook50-15

ebook50-15 15 82 C / C + + Developer Studio M F C C C + + 83 C / C + + M F C D L L D L L 84 M F C MFC DLL M F C 85 MFC DLL 15.1 82 C/C++ C C + + D L L M F C M F C 84 Developer Studio S t u d i o 292 C _ c p l u s

More information

ebook50-11

ebook50-11 11 Wi n d o w s C A D 53 M F C 54 55 56 57 58 M F C 11.1 53 11-1 11-1 MFC M F C C D C Wi n d o w s Wi n d o w s 4 11 199 1. 1) W M _ PA I N T p W n d C W n d C D C * p D C = p W n d GetDC( ); 2) p W n

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

ebook51-14

ebook51-14 14 Wi n d o w s M F C 53 54 55 56 ( ) ( Wo r k e r T h r e a d ) 57 ( ) ( U s e r Interface Thread) 58 59 14.1 53 1. 2. C l a s s Wi z a r d O n I d l e () 3. Class Wi z a r d O n I d l e () O n I d l

More information

ebook70-19

ebook70-19 1 9 S t a r O ff i c e Star Division S t a r O ff i c e h t t p / / w w w. s t a r d i v i s i o n. c o m S t a r O ff i c e O p e n L i n u x O p e n L i n u x StarOffice S t a r O ff i c e S t a r O

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

INTRODUCTION TO COM.DOC

INTRODUCTION TO COM.DOC How About COM & ActiveX Control With Visual C++ 6.0 Author: Curtis CHOU mahler@ms16.hinet.net This document can be freely release and distribute without modify. ACTIVEX CONTROLS... 3 ACTIVEX... 3 MFC ACTIVEX

More information

Microsoft Word - 第3章.doc

Microsoft Word - 第3章.doc Java C++ Pascal C# C# if if if for while do while foreach while do while C# 3.1.1 ; 3-1 ischeck Test() While ischeck while static bool ischeck = true; public static void Test() while (ischeck) ; ischeck

More information

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++;

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; Memory & Pointer trio@seu.edu.cn 2.1 2.1.1 1 int *p int a 0x00C7 0x00C7 0x00C7 2.1.2 2 int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; 2.1.3 1. 2. 3. 3 int A,

More information

WinMDI 28

WinMDI 28 WinMDI WinMDI 2 Region Gate Marker Quadrant Excel FACScan IBM-PC MO WinMDI WinMDI IBM-PC Dr. Joseph Trotter the Scripps Research Institute WinMDI HP PC WinMDI WinMDI PC MS WORD, PowerPoint, Excel, LOTUS

More information

新版 明解C++入門編

新版 明解C++入門編 511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,

More information

提问袁小兵:

提问袁小兵: C++ 面 试 试 题 汇 总 柯 贤 富 管 理 软 件 需 求 分 析 篇 1. STL 类 模 板 标 准 库 中 容 器 和 算 法 这 部 分 一 般 称 为 标 准 模 板 库 2. 为 什 么 定 义 虚 的 析 构 函 数? 避 免 内 存 问 题, 当 你 可 能 通 过 基 类 指 针 删 除 派 生 类 对 象 时 必 须 保 证 基 类 析 构 函 数 为 虚 函 数 3.

More information

ebook140-9

ebook140-9 9 VPN VPN Novell BorderManager Windows NT PPTP V P N L A V P N V N P I n t e r n e t V P N 9.1 V P N Windows 98 Windows PPTP VPN Novell BorderManager T M I P s e c Wi n d o w s I n t e r n e t I S P I

More information

Text 文字输入功能 , 使用者可自行定义文字 高度, 旋转角度 , 行距 , 字间距离 和 倾斜角度。

Text 文字输入功能 , 使用者可自行定义文字  高度, 旋转角度 , 行距 , 字间距离 和 倾斜角度。 GerbTool Wise Software Solution, Inc. File New OPEN CLOSE Merge SAVE SAVE AS Page Setup Print Print PreView Print setup (,, IMPORT Gerber Wizard Gerber,Aperture Gerber Gerber, RS-274-D, RS-274-X, Fire9000

More information

ebook140-8

ebook140-8 8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

Microsoft Word - 11.doc

Microsoft Word - 11.doc 除 錯 技 巧 您 將 於 本 章 學 到 以 下 各 項 : 如 何 在 Visual C++ 2010 的 除 錯 工 具 控 制 下 執 行 程 式? 如 何 逐 步 地 執 行 程 式 的 敘 述? 如 何 監 看 或 改 變 程 式 中 的 變 數 值? 如 何 監 看 程 式 中 計 算 式 的 值? 何 謂 Call Stack? 何 謂 診 斷 器 (assertion)? 如 何

More information

ebook129-11

ebook129-11 11 TThread Wi n 32 16 Wi n d o w s Wi n 3 32 D e l p h i 11.1 3 Win32 API Wi n 32 C P U C P U 16 Windows 32 Delphi Delphi 1 11.1.1 16 Wi n 32 Windows 3.1 1 2 C P U 1 Windows 3.1 Wi n d o w s 16 Wi n d

More information

Microsoft Word - ch04三校.doc

Microsoft Word - ch04三校.doc 4-1 4-1-1 (Object) (State) (Behavior) ( ) ( ) ( method) ( properties) ( functions) 4-2 4-1-2 (Message) ( ) ( ) ( ) A B A ( ) ( ) ( YourCar) ( changegear) ( lowergear) 4-1-3 (Class) (Blueprint) 4-3 changegear

More information

epub 63-3

epub 63-3 3 Solaris S o l a r i s S o l a r i s 2 S o l a r i s s h e l l p a s s w d v i l s c a t p g m o r e r m 3.1 3.1.1 c p c p c o p y c p c p cp source-file destination-file s o u r c e - f i l e c p d e

More information

ebook

ebook 3 3 3.1 3.1.1 ( ) 90 3 1966 B e r n s t e i n P ( i ) R ( i ) W ( i P ( i P ( j ) 1) R( i) W( j)=φ 2) W( i) R( j)=φ 3) W( i) W( j)=φ 3.1.2 ( p r o c e s s ) 91 Wi n d o w s Process Control Bl o c k P C

More information

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO Car DVD New GUI IR Flow User Manual V0.1 Jan 25, 2008 19, Innovation First Road Science Park Hsin-Chu Taiwan 300 R.O.C. Tel: 886-3-578-6005 Fax: 886-3-578-4418 Web: www.sunplus.com Important Notice SUNPLUS

More information

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco

Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco Windows RTEMS 1 Danilliu MMI TCP/IP 80486 QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos ecos Email www.rtems.com RTEMS ecos RTEMS RTEMS Windows

More information

Microsoft Word - 物件導向編程精要.doc

Microsoft Word - 物件導向編程精要.doc Essential Object-Oriented Programming Josh Ko 2007.03.11 object-oriented programming C++ Java OO class object OOP Ruby duck typing complexity abstraction paradigm objects objects model object-oriented

More information

ebook140-11

ebook140-11 11 VPN Windows NT4 B o r d e r M a n a g e r VPN VPN V P N V P N V P V P N V P N TCP/IP 11.1 V P N V P N / ( ) 11.1.1 11 V P N 285 2 3 1. L A N LAN V P N 10MB 100MB L A N VPN V P N V P N Microsoft PPTP

More information

02

02 Thinking in C++: Volume One: Introduction to Standard C++, Second Edition & Volume Two: Practical Programming C++ C C++ C++ 3 3 C C class C++ C++ C++ C++ string vector 2.1 interpreter compiler 2.1.1 BASIC

More information

Microsoft Word - 01.DOC

Microsoft Word - 01.DOC 第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的

More information

概述

概述 OPC Version 1.8 build 0925 KOCRDK Knight OPC Client Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOC_Init...5 2.2.2 KOC_Uninit...5 2.3...5

More information

epub 32-2

epub 32-2 2 L e x i W Y S I W Y G L e x i 8 2-1 L e x i 2-1 Lexi L e x i C a l d e r D o c [ C L 92 ] 2 23 2.1 L e x i 1) L e x i 2) L e x i 3) L e x i W Y S I W Y G L e x i 4 ) ( l o o k - a n d - f e e l )L e

More information

C/C++ - 数组与指针

C/C++ - 数组与指针 C/C++ Table of contents 1. 2. 3. 4. 5. 6. 7. 8. 1 float candy [ 365]; char code [12]; int states [50]; 2 int array [6] = {1, 2, 4, 6, 8, 10}; 3 // day_mon1.c: # include # define MONTHS 12 int

More information

Microsoft PowerPoint - string_kruse [兼容模式]

Microsoft PowerPoint - string_kruse [兼容模式] Strings Strings in C not encapsulated Every C-string has type char *. Hence, a C-string references an address in memory, the first of a contiguous set of bytes that store the characters making up the string.

More information

Serial ATA ( nvidia nforce4 Ultra/SLI)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 6 (4) S A T A... 9 (5) S A T A (6) Micro

Serial ATA ( nvidia nforce4 Ultra/SLI)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 6 (4) S A T A... 9 (5) S A T A (6) Micro Serial ATA ( nvidia nforce4 Ultra/SLI)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 6 (4) S A T A... 9 (5) S A T A... 11 (6) Microsoft Windows 2000... 14 Ác Åé å Serial ATA ( nvidia

More information

c_cpp

c_cpp C C++ C C++ C++ (object oriented) C C++.cpp C C++ C C++ : for (int i=0;i

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

ebook 99-11

ebook 99-11 11 P I C K U N I X P I C K P I C K s o r t uniq join cut paste split 11.1 sort s o r t s o r t U N I X 11.1.1 U N I X / L I N U X s o r t s o r s o r t s o r t s o r t s o r t s o r t s o r t u n i q j

More information

基于UML建模的管理管理信息系统项目案例导航——VB篇

基于UML建模的管理管理信息系统项目案例导航——VB篇 PowerBuilder 8.0 PowerBuilder 8.0 12 PowerBuilder 8.0 PowerScript PowerBuilder CIP PowerBuilder 8.0 /. 2004 21 ISBN 7-03-014600-X.P.. -,PowerBuilder 8.0 - -.TP311.56 CIP 2004 117494 / / 16 100717 http://www.sciencep.com

More information

CHAPTER VC#

CHAPTER VC# 1. 2. 3. 4. CHAPTER 2-1 2-2 2-3 2-4 VC# 2-5 2-6 2-7 2-8 Visual C# 2008 2-1 Visual C# 0~100 (-32768~+32767) 2 4 VC# (Overflow) 2-1 2-2 2-1 2-1.1 2-1 1 10 10!(1 10) 2-3 Visual C# 2008 10! 32767 short( )

More information

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023)

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023) ( CIP) /. :, 2005. 2 ( ) ISBN 7-5624-3339-9.......... TP311. 1 CIP ( 2005) 011794 : : : : * : : 174 ( A ) :400030 : ( 023) 65102378 65105781 : ( 023) 65103686 65105565 : http: / /www. cqup. com. cn : fxk@cqup.

More information

ebook15-C

ebook15-C C 1 1.1 l s ( 1 ) - i i 4. 14 - d $ l s -ldi /etc/. /etc/.. - i i 3077 drwxr-sr-x 7 bin 2048 Aug 5 20:12 /etc/./ 2 drwxr-xr-x 13 root 512 Aug 5 20:11 /etc/../ $ls -ldi /. /..... i 2 2 drwxr-xr-x 13 root

More information

C/C++语言 - 运算符、表达式和语句

C/C++语言 - 运算符、表达式和语句 C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe

More information

ebook111-4

ebook111-4 Flash 4 Flash 4 F l a s h 5 Flash 4 Flash Flash 4 Flash 4 Flash 4 4.1 Flash 4 Flash 4 Flash 4 Flash Flash 4 Flash 4 4.2 Flash 4 Flash 4 A Flash 4 S h i f t F i l e P r e f e r e n c e s > > Flash 4 Flash

More information

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F 1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET 2.0 2.0.NET Framework.NET Framework 2.0 ( 3).NET Framework 2.0.NET Framework ( System ) o o o o o o Boxing UnBoxing() o

More information

C/C++ - 字符输入输出和字符确认

C/C++ - 字符输入输出和字符确认 C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,

More information

EK-STM32F

EK-STM32F STMEVKIT-STM32F10xx8 软 件 开 发 入 门 指 南 目 录 1 EWARM 安 装... 1 1.1 第 一 步 : 在 线 注 册... 1 1.2 第 二 步 : 下 载 软 件... 2 1.3 第 三 步 : 安 装 EWARM... 3 2 基 于 STMEVKIT-STM32F10xx8 的 示 例 代 码 运 行... 6 2.1 GPIO Demo... 6 2.2

More information

Simulator By SunLingxi 2003

Simulator By SunLingxi 2003 Simulator By SunLingxi sunlingxi@sina.com 2003 windows 2000 Tornado ping ping 1. Tornado Full Simulator...3 2....3 3. ping...6 4. Tornado Simulator BSP...6 5. VxWorks simpc...7 6. simulator...7 7. simulator

More information

Microsoft PowerPoint - ch6 [相容模式]

Microsoft PowerPoint - ch6 [相容模式] UiBinder wzyang@asia.edu.tw UiBinder Java GWT UiBinder XML UI i18n (widget) 1 2 UiBinder HelloWidget.ui.xml: UI HelloWidgetBinder HelloWidget.java XML UI Owner class ( Composite ) UI XML UiBinder: Owner

More information

HLA-B27軟體

HLA-B27軟體 HLA-B27 HLA-B27 CaliBRITE Beads FACSComp HLA-B27 Calibration Beads HLA-B27 HLA-B27 1. HLA-B27 1.1 HLA-B27 HLA Major Histocompatibity Complex MHC HLA HLA-A -B -C HLA HLA-D/DR -DP -DQ B HLA HLA HLA HLA-B27

More information

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

CHAPTER 1

CHAPTER 1 CHAPTER 1 1-1 System Development Life Cycle; SDLC SDLC Waterfall Model Shelly 1995 1. Preliminary Investigation 2. System Analysis 3. System Design 4. System Development 5. System Implementation and Evaluation

More information

C 1

C 1 C homepage: xpzhangme 2018 5 30 C 1 C min(x, y) double C // min c # include # include double min ( double x, double y); int main ( int argc, char * argv []) { double x, y; if( argc!=

More information

f2.eps

f2.eps 前 言, 目 录 产 品 概 况 1 SICAM PAS SICAM 电 力 自 动 化 系 统 配 置 和 使 用 说 明 配 置 2 操 作 3 实 时 数 据 4 人 机 界 面 5 SINAUT LSA 转 换 器 6 状 态 与 控 制 信 息 A 版 本 号 : 08.03.05 附 录, 索 引 安 全 标 识 由 于 对 设 备 的 特 殊 操 作 往 往 需 要 一 些 特 殊 的

More information

USING MAYA ANIMATION Keyset set Maya sets partitions MEL MEL copykey cutkey pastekey scalekey snapkey keytangent bakeresults MEL Command Reference Edi

USING MAYA ANIMATION Keyset set Maya sets partitions MEL MEL copykey cutkey pastekey scalekey snapkey keytangent bakeresults MEL Command Reference Edi 9 61 62 65 67 69 69 71 74 76 Maya Edit > Keys > Paste Keys Maya 61 USING MAYA ANIMATION Keyset set Maya sets partitions MEL MEL copykey cutkey pastekey scalekey snapkey keytangent bakeresults MEL Command

More information

ebook39-5

ebook39-5 5 3 last-in-first-out, LIFO 3-1 L i n e a r L i s t 3-8 C h a i n 3 3. 8. 3 C + + 5.1 [ ] s t a c k t o p b o t t o m 5-1a 5-1a E D 5-1b 5-1b E E 5-1a 5-1b 5-1c E t o p D t o p D C C B B B t o p A b o

More information

P4i45GL_GV-R50-CN.p65

P4i45GL_GV-R50-CN.p65 1 Main Advanced Security Power Boot Exit System Date System Time Floppy Drives IDE Devices BIOS Version Processor Type Processor Speed Cache Size Microcode Update Total Memory DDR1 DDR2 Dec 18 2003 Thu

More information

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1 21 , 7, Windows,,,, : 010-62782989 13501256678 13801310933,,,, ;,, ( CIP) /,,. : ;, 2005. 11 ( 21 ) ISBN 7-81082 - 634-4... - : -. TP316-44 CIP ( 2005) 123583 : : : : 100084 : 010-62776969 : 100044 : 010-51686414

More information

新・解きながら学ぶJava

新・解きながら学ぶJava 481! 41, 74!= 40, 270 " 4 % 23, 25 %% 121 %c 425 %d 121 %o 121 %x 121 & 199 && 48 ' 81, 425 ( ) 14, 17 ( ) 128 ( ) 183 * 23 */ 3, 390 ++ 79 ++ 80 += 93 + 22 + 23 + 279 + 14 + 124 + 7, 148, 16 -- 79 --

More information

epub 21-22

epub 21-22 2 2 F i r e w o r k s 2 3We b 2 4We b 2 5 S h o c k w a v e F l a s h f i r e w o r k s / D r e a m w e a v e r D r e a m w e a v e r F i r e w o r k s F i r e w o r k s F i r e w o r k s F i r e w o r

More information

untitled

untitled 1 Access 料 (1) 立 料 [] [] [ 料 ] 立 料 Access 料 (2) 料 [ 立 料 ] Access 料 (3) 料 料 料 料 料 料 欄 ADO.NET ADO.NET.NET Framework 類 來 料 料 料 料 料 Ex MSSQL Access Excel XML ADO.NET 連 .NET 料.NET 料 料來 類.NET Data Provider

More information

Microsoft PowerPoint - Model Checking a Lazy Concurrent List-Based Set Algorithm.ppt [Compatibility Mode]

Microsoft PowerPoint - Model Checking a Lazy Concurrent List-Based Set Algorithm.ppt [Compatibility Mode] Model Checking a Lazy Concurrent List-Based Set Algorithm ZHANG Shaojie, LIU Yang National University of Singapore Agenda Introduction Background Ourapproach Overview Linearizabilitydefinition Modelinglanguage

More information

全国计算机技术与软件专业技术资格(水平)考试

全国计算机技术与软件专业技术资格(水平)考试 全 国 计 算 机 技 术 与 软 件 专 业 技 术 资 格 ( 水 平 ) 考 试 2008 年 上 半 年 程 序 员 下 午 试 卷 ( 考 试 时 间 14:00~16:30 共 150 分 钟 ) 试 题 一 ( 共 15 分 ) 阅 读 以 下 说 明 和 流 程 图, 填 补 流 程 图 中 的 空 缺 (1)~(9), 将 解 答 填 入 答 题 纸 的 对 应 栏 内 [ 说 明

More information

ebook45-5

ebook45-5 5 S Q L SQL Server 5.1 5-1 SQL Server 5-1 A B S A C O S A S I N ATA N AT N 2 C E I L I N G C O S C O T D E G R E E S E X P F L O O R L O G L O G 10 P I P O W E R R A D I A N S R A N D R O U N D S I G N

More information

Microsoft Word - CIN-DLL.doc

Microsoft Word - CIN-DLL.doc 6.3. 调 用 动 态 链 接 库 (DLL) 相 对 于 CIN 来 讲,NI 更 推 荐 用 户 使 用 DLL 来 共 享 基 于 文 本 编 程 语 言 开 发 的 代 码 除 了 共 享 或 重 复 利 用 代 码, 开 发 人 员 还 能 利 用 DLL 封 装 软 件 的 功 能 模 块, 以 便 这 些 模 块 能 被 不 同 开 发 工 具 利 用 在 LabVIEW 中 使 用

More information

JC2.nps

JC2.nps 第 3 章 Word 文 字 处 理 Office 办 公 软 件 中 的 Word 是 Microsoft 公 司 的 一 个 文 字 处 理 应 用 程 序, 适 合 对 书 信 公 文 报 告 论 文 商 业 合 同 等 进 行 一 些 文 字 工 作 Word 不 但 能 够 处 理 文 字, 还 能 够 插 入 及 处 理 图 形 图 像 公 式 表 格 图 表, 甚 至 可 以 播 放

More information

epub 77-2

epub 77-2 2 A u t o C A D A u t o C A D 2.1 A u t o C A D. D W T A u t o C A D. D W T S AV E A S A u t o C A D A u t o C A D N E W C T R L - N 30 AutoCAD A u t o C A D 2-1 2-1 A u t o C A D A u t o C A D ~ 2.1.1

More information

untitled

untitled COM ActiveX Control 年 ACTIVEX CONTROLS 念... 3 ACTIVEX... 3 MFC ACTIVEX CONTROLWIZARD... 3 MFC ACTIVEX CONTROLS WIZARD... 4 MFC... 4... 4 ACTIVEX... 4 ONDRAW 行... 4 ONDRAW() 數... 5 ACTIVEX... 5 (STOCK PROPERTIES)...

More information

bingdian001.com

bingdian001.com TSM12M TSM12 STM8L152C6, STM8L152R8 MSP430F5325 whym1987@126.com! /******************************************************************************* * : TSM12.c * : * : 2013/10/21 * : TSM12, STM8L f(sysclk)

More information

使用SQL Developer

使用SQL Developer 使 用 SQL Developer 达 成 的 目 标 / 方 案 1 创 建 一 个 新 的 数 据 库 连 接 ; 2 在 SQL Developer 中 查 看 数 据 库 对 象 的 信 息 修 改 数 据 ; 3 在 SQL Developer 中 创 建 表 ; 4 在 SQL Developer 中 创 建 索 引 ; 5 在 SQL Developer 中 创 建 函 数 ; 6 在

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

科学计算的语言-FORTRAN95

科学计算的语言-FORTRAN95 科 学 计 算 的 语 言 -FORTRAN95 目 录 第 一 篇 闲 话 第 1 章 目 的 是 计 算 第 2 章 FORTRAN95 如 何 描 述 计 算 第 3 章 FORTRAN 的 编 译 系 统 第 二 篇 计 算 的 叙 述 第 4 章 FORTRAN95 语 言 的 形 貌 第 5 章 准 备 数 据 第 6 章 构 造 数 据 第 7 章 声 明 数 据 第 8 章 构 造

More information

<4D6963726F736F667420506F776572506F696E74202D20332D322E432B2BC3E6CFF2B6D4CFF3B3CCD0F2C9E8BCC6A1AAD6D8D4D8A1A2BCCCB3D0A1A2B6E0CCACBACDBEDBBACF2E707074>

<4D6963726F736F667420506F776572506F696E74202D20332D322E432B2BC3E6CFF2B6D4CFF3B3CCD0F2C9E8BCC6A1AAD6D8D4D8A1A2BCCCB3D0A1A2B6E0CCACBACDBEDBBACF2E707074> 程 序 设 计 实 习 INFO130048 3-2.C++ 面 向 对 象 程 序 设 计 重 载 继 承 多 态 和 聚 合 复 旦 大 学 计 算 机 科 学 与 工 程 系 彭 鑫 pengxin@fudan.edu.cn 内 容 摘 要 方 法 重 载 类 的 继 承 对 象 引 用 和 拷 贝 构 造 函 数 虚 函 数 和 多 态 性 类 的 聚 集 复 旦 大 学 计 算 机 科 学

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2 PowerBuilder 9 PowerBuilder Native Interface(PBNI) PowerBuilder 9 PowerBuilder C++ Java PowerBuilder 9 PBNI PowerBuilder Java C++ PowerBuilder NVO / PowerBuilder C/C++ PowerBuilder 9.0 PowerBuilder Native

More information

LSC操作说明

LSC操作说明 1 C H R I S T A L P H A 1-4 LSC 型 Part. No. 102041 A L P H A 2-4 LSC 型 Part. No. 10204 冷 冻 干 燥 机 操 作 说 明 新 研 制 的 LSC-8 控 制 器, 具 备 图 形 显 示 功 能, 能 以 数 据 表 形 式 显 示 参 数, 并 可 选 配 控 制 软 件 LSC-8 1/4 VGA 大 屏 幕

More information

2013 C 1 #include <stdio.h> 2 int main(void) 3 { 4 int cases, i; 5 long long a, b; 6 scanf("%d", &cases); 7 for (i = 0; i < cases; i++) 8 { 9 scanf("%

2013 C 1 #include <stdio.h> 2 int main(void) 3 { 4 int cases, i; 5 long long a, b; 6 scanf(%d, &cases); 7 for (i = 0; i < cases; i++) 8 { 9 scanf(% 2013 ( 28 ) ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp Compilation Error long long cin scanf Time Limit Exceeded 1: A 10 B 1 C 1 D 5 E 5 F 1 G II 5 H 30 1 2013 C 1 #include 2 int main(void) 3

More information

國家圖書館典藏電子全文

國家圖書館典藏電子全文 EAI EAI Middleware EAI 3.1 EAI EAI Client/Server Internet,www,Jav a 3.1 EAI Message Brokers -Data Transformation Business Rule XML XML 37 3.1 XML XML XML EAI XML 1. XML XML Java Script VB Script Active

More information

Microsoft Word - 3D手册2.doc

Microsoft Word - 3D手册2.doc 第 一 章 BLOCK 前 处 理 本 章 纲 要 : 1. BLOCK 前 处 理 1.1. 创 建 新 作 业 1.2. 设 定 模 拟 控 制 参 数 1.3. 输 入 对 象 数 据 1.4. 视 图 操 作 1.5. 选 择 点 1.6. 其 他 显 示 窗 口 图 标 钮 1.7. 保 存 作 业 1.8. 退 出 DEFORMTM3D 1 1. BLOCK 前 处 理 1.1. 创 建

More information

mvc

mvc Build an application Tutor : Michael Pan Application Source codes - - Frameworks Xib files - - Resources - ( ) info.plist - UIKit Framework UIApplication Event status bar, icon... delegation [UIApplication

More information

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Ác Åé å Serial ATA ( Silicon Image SiI3114) S A T A (1) SATA (2)

More information

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8 els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8 Yamaha ELS-0/0C..8 LCD ELS-0/0C v. typeu LCD ELS-0/0C typeu / -6 / [SEARCH] / - ZH ELS-0/0C.8 els0xu_zh_nf_v8.book Page Wednesday, June,

More information

C/C++ - 字符串与字符串函数

C/C++ - 字符串与字符串函数 C/C++ Table of contents 1. 2. 3. 4. 1 char C 2 char greeting [50] = " How " " are " " you?"; char greeting [50] = " How are you?"; 3 printf ("\" Ready, go!\" exclaimed John."); " Ready, go!" exclaimed

More information

untitled

untitled 1 MSDN Library MSDN Library 量 例 參 列 [ 說 ] [] [ 索 ] [] 來 MSDN Library 了 類 類 利 F1 http://msdn.microsoft.com/library/ http://msdn.microsoft.com/library/cht/ Object object 參 類 都 object 參 object Boxing 參 boxing

More information

K7VT2_QIG_v3

K7VT2_QIG_v3 ............ 1 2 3 4 5 [R] : Enter Raid setup utility 6 Press[A]keytocreateRAID RAID Type: JBOD RAID 0 RAID 1: 2 7 RAID 0 Auto Create Manual Create: 2 RAID 0 Block Size: 16K 32K

More information

ebook 86-15

ebook 86-15 15 G t k + d e l e t e _ e v e n t G n o m e G n o m e 15.1 GnomeDialog G t k + G n o m e D i a l o g 15.1.1 G n o m e D i a l o g g n o m e _ d i a l o g _ n e w ( ) G N O M E _ D I A L O G ( d i a l

More information

untitled

untitled 2006 6 Geoframe Geoframe 4.0.3 Geoframe 1.2 1 Project Manager Project Management Create a new project Create a new project ( ) OK storage setting OK (Create charisma project extension) NO OK 2 Edit project

More information

Business Objects 5.1 Windows BusinessObjects 1

Business Objects 5.1 Windows BusinessObjects 1 Business Objects 5.1 Windows BusinessObjects 1 BusinessObjects 2 BusinessObjects BusinessObjects BusinessObjects Windows95/98/NT BusinessObjects Windows BusinessObjects BusinessObjects BusinessObjects

More information

untitled

untitled OGRE http://antsam.blogone.net AntsamCGD@hotmail.com OGRE OGRE listener listener target listener target Dispatcher Processor Input Reader Event class view Event Class view Input Event ctrlaltshift ascoll

More information

Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE "Project Properties" IDE makefile 1.

Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE Project Properties IDE makefile 1. Oracle Solaris Studio 12.2 IDE 2010 9 2 8 9 10 11 13 20 26 28 30 32 33 Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE "Project Properties" IDE makefile 1. "File" > "New

More information

Microsoft Word - template.doc

Microsoft Word - template.doc HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started

More information

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM CHAPTER 6 SQL SQL SQL 6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM 3. 1986 10 ANSI SQL ANSI X3. 135-1986

More information

Chapter12 Derived Classes

Chapter12   Derived Classes 继 承 -- 派 生 类 复 习 1. 有 下 面 类 的 说 明, 有 错 误 的 语 句 是 : class X { A) const int a; B) X(); C) X(int val) {a=2 D) ~X(); 答 案 :C 不 正 确, 应 改 成 X(int val) : a(2) { 2. 下 列 静 态 数 据 成 员 的 特 性 中, 错 误 的 是 A) 说 明 静 态 数

More information

untitled

untitled 1 .NET 料.NET 料 料來 類.NET Data Provider SQL.NET Data Provider System.Data.SqlClient 料 MS-SQL OLE DB.NET Data Provider System.Data.OleDb 料 Dbase FoxPro Excel Access Oracle Access ODBC.NET Data Provider 料

More information

1 c o m m u n i c a t i n g o b j e c t ( ) ( ) / 2 1.1 Christopher Alexander [ A I S + 77 10 ] A l e x a n d e r 1. pattern name 2. (problem) 3. (solution) 4. (consequences) h a s h 1 3 C++ S m a l l

More information

ebook12-1

ebook12-1 API N e t B I O S Wi n s o c k A P I Wi n s o c k 1 N e t B I O S Wi n s o c k A P I N e t B I O S O S / 2 D O S 2 3 4 Wi n d o w s Wi n d o w s 1 NetBIOS Network Basic Input/Output System, NetBIOS A P

More information

新・解きながら学ぶC言語

新・解きながら学ぶC言語 330!... 67!=... 42 "... 215 " "... 6, 77, 222 #define... 114, 194 #include... 145 %... 21 %... 21 %%... 21 %f... 26 %ld... 162 %lf... 26 %lu... 162 %o... 180 %p... 248 %s... 223, 224 %u... 162 %x... 180

More information

ebook39-6

ebook39-6 6 first-in-first-out, FIFO L i n e a r L i s t 3-1 C h a i n 3-8 5. 5. 3 F I F O L I F O 5. 5. 6 5. 5. 6.1 [ ] q u e n e ( r e a r ) ( f r o n t 6-1a A 6-1b 6-1b D C D 6-1c a) b) c) 6-1 F I F O L I F ADT

More information

ebook66-15

ebook66-15 1 5 Wi n d o w s 3 17 18 15.1 Vi r t u a l A l l o c p v A d d r e s s M U L L Vi r t u a l A l l o c M E M _ TO P _ D O W N 50 MB 52 428 800 5 0 1 024 1 024 p v A d d r e s s Vi r t u a l A l l o c N

More information

Windows XP

Windows XP Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs

More information

untitled

untitled MPICH anzhulin@sohu.com 1 MPICH for Microsoft Windows 1.1 MPICH for Microsoft Windows Windows NT4/2000/XP Professional Server Windows 95/98 TCP/IP MPICH MS VC++ 6.x MS VC++.NET Compaq Visual Fortran 6.x

More information