10.05.2014 Views

Algoritmi genetici pentru rezolvarea problemelor prin - Sorin ...

Algoritmi genetici pentru rezolvarea problemelor prin - Sorin ...

Algoritmi genetici pentru rezolvarea problemelor prin - Sorin ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

StringCovering.cpp<br />

1<br />

2<br />

3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

9<br />

10<br />

11<br />

12<br />

13<br />

14<br />

15<br />

16<br />

17<br />

18<br />

19<br />

20<br />

21<br />

22<br />

23<br />

24<br />

25<br />

26<br />

27<br />

28<br />

29<br />

30<br />

31<br />

32<br />

33<br />

34<br />

35<br />

36<br />

37<br />

38<br />

39<br />

40<br />

41<br />

42<br />

43<br />

44<br />

45<br />

46<br />

47<br />

48<br />

49<br />

50<br />

51<br />

52<br />

53<br />

54<br />

55<br />

56<br />

57<br />

58<br />

59<br />

60<br />

61<br />

62<br />

63<br />

64<br />

65<br />

66<br />

67<br />

68<br />

69<br />

70<br />

71<br />

72<br />

73<br />

74<br />

75<br />

76<br />

77<br />

78<br />

79<br />

//////////////////////////////////////////////////<br />

// (c) 2003 <strong>Sorin</strong> OSTAFIEV (sorin@ostafiev.com) //<br />

//////////////////////////////////////////////////<br />

// StringCovering.cpp : Defines the class behaviors for the application.<br />

//<br />

#include "stdafx.h"<br />

#include "StringCovering.h"<br />

#include "StringCoveringDlg.h"<br />

#ifdef _DEBUG<br />

#define new DEBUG_NEW<br />

#undef THIS_FILE<br />

static char THIS_FILE[] = __FILE__;<br />

#endif<br />

/////////////////////////////////////////////////////////////////////////////<br />

// CStringCoveringApp<br />

BEGIN_MESSAGE_MAP(CStringCoveringApp, CWinApp)<br />

//{{AFX_MSG_MAP(CStringCoveringApp)<br />

// NOTE - the ClassWizard will add and remove mapping macros here.<br />

// DO NOT EDIT what you see in these blocks of generated code!<br />

//}}AFX_MSG<br />

ON_COMMAND(ID_HELP, CWinApp::OnHelp)<br />

END_MESSAGE_MAP()<br />

/////////////////////////////////////////////////////////////////////////////<br />

// CStringCoveringApp construction<br />

CStringCoveringApp::CStringCoveringApp()<br />

{<br />

// TODO: add construction code here,<br />

// Place all significant initialization in InitInstance<br />

}<br />

/////////////////////////////////////////////////////////////////////////////<br />

// The one and only CStringCoveringApp object<br />

CStringCoveringApp theApp;<br />

/////////////////////////////////////////////////////////////////////////////<br />

// CStringCoveringApp initialization<br />

BOOL CStringCoveringApp::InitInstance()<br />

{<br />

AfxEnableControlContainer();<br />

// Standard initialization<br />

// If you are not using these features and wish to reduce the size<br />

// of your final executable, you should remove from the following<br />

// the specific initialization routines you do not need.<br />

#ifdef _AFXDLL<br />

Enable3dControls();<br />

#else<br />

Enable3dControlsStatic();<br />

#endif<br />

}<br />

// Call this when using MFC in a shared DLL<br />

// Call this when linking to MFC statically<br />

CStringCoveringDlg dlg;<br />

m_pMainWnd = &dlg;<br />

int nResponse = dlg.DoModal();<br />

if (nResponse == IDOK)<br />

{<br />

// TODO: Place code here to handle when the dialog is<br />

// dismissed with OK<br />

}<br />

else if (nResponse == IDCANCEL)<br />

{<br />

// TODO: Place code here to handle when the dialog is<br />

// dismissed with Cancel<br />

}<br />

// Since the dialog has been closed, return FALSE so that we exit the<br />

// application, rather than start the application's message pump.<br />

return FALSE;<br />

Page 1 of 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!