|
// EnglishDictionaryDlg.h : header file
//
#if !defined(AFX_ENGLISHDICTIONARYDLG_H__3F4657C7_4591_11DA_B447_0030F11FB44E__INCLUDED_)
#define AFX_ENGLISHDICTIONARYDLG_H__3F4657C7_4591_11DA_B447_0030F11FB44E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "TernarySearchTree.h"
/////////////////////////////////////////////////////////////////////////////
// CEnglishDictionaryDlg dialog
class CTernarySearchTree;
class CTSTNode;
class CEnglishDictionaryDlg : public CDialog
{
// Construction
public:
CEnglishDictionaryDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CEnglishDictionaryDlg)
enum { IDD = IDD_ENGLISHDICTIONARY_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEnglishDictionaryDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
CStdioFile Words;
int GetNumberOfWordsFromFile(CFile& Words);
//char* GetCurrentWord(int WordPosition, CFile& Words);
private:
CTernarySearchTree* test;
//CTernarySearchTree test;
CTSTNode* root;
//Som on 04.12.2005. Replacing simple array with CStringArray
CStringArray Dic;
CStringArray meaning;
//char* Dic[1000];
//char* meaning[1000];
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CEnglishDictionaryDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnChangeEdit1();
afx_msg void OnClose();
afx_msg void OnButton2();
afx_msg void OnDblclkList1();
afx_msg void OnButton3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ENGLISHDICTIONARYDLG_H__3F4657C7_4591_11DA_B447_0030F11FB44E__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
The best way I can describe myself is as a dream chaser. In the beginning of my career, being in the marketing department of a big telecom company, which hardly added any values to my curiosity, I was hell-bent to jump into the software because that was the only way to know about the nitty-gritty of the hardcore technical aspects. Hence I started with learning C++/VC++. But in the beginning it was really difficult without much idea about programming. Moreover, there was no google. I took a little more time to pick up. There was no training. Absolutely no help from anybody. No broadband internet. No computer at home. It was really difficult for me. But I did not stop dreaming. I used to dream and tell my colleagues that C++ is not as much about programming as about designing. It is more about a technique for moving from the problem domain to the solution domain. However, I hardly got any supports from the organizations where I worked. It was only when I got a PC at home, I started walking towards my goal. The early morning rise, innumerable visits to technical book stores in Bangalore, googling and traversing from one link to another in search for technical and C++ contents, becoming tired after the office hours, all were part of it. But still the road was difficult. I was not able to join the dots. And then when I started going through the Design Pattern book, the actual joy of learning began. Still I remember how I used to go through the MFC source code to map different GoF patterns in Doc-View architecture, the command-routing architecture and so forth. However, I was not much aware of the Open Source communities. Then when Google made their Android framework open, it was a boon for me. I picked up many unknown areas and started looking into code from a designer’s perspective. When i started understanding the Android framework code, I thought I was really able to join the dots.The dots between the dream and the reality to become an able software engineer…..