Click here to Skip to main content
15,894,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Socket Programming Pin
Michael Hendrickx12-Jun-05 7:35
Michael Hendrickx12-Jun-05 7:35 
Generalin Win32 (SDK)color After Printing getting too much li Pin
chachva24-May-05 5:54
chachva24-May-05 5:54 
Generalvariable problem Pin
Anonymous24-May-05 5:50
Anonymous24-May-05 5:50 
GeneralRe: variable problem Pin
jmkhael24-May-05 6:00
jmkhael24-May-05 6:00 
GeneralRe: variable problem Pin
Anonymous24-May-05 6:13
Anonymous24-May-05 6:13 
GeneralRe: variable problem Pin
David Crow24-May-05 6:17
David Crow24-May-05 6:17 
GeneralRe: variable problem Pin
jmkhael24-May-05 6:18
jmkhael24-May-05 6:18 
GeneralRe: variable problem Pin
Anonymous24-May-05 6:24
Anonymous24-May-05 6:24 
Its ok now. I know the problem. Thank you very much! Big Grin | :-D


in go.h:

// GO.h : main header file for the GO application
//

#if !defined(AFX_GO_H__76EC2730_7BFA_4A29_9F6A_226E7AEC7B81__INCLUDED_)
#define AFX_GO_H__76EC2730_7BFA_4A29_9F6A_226E7AEC7B81__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h" // main symbols

#define MAX_STEP 1000
#define MAX_FILE_NAME 30
#define BOARD_SIZE 19

#define BLACK '@'
#define WHITE 'O'
#define KEP '*'
#define EMPTY '.'
#define EMPTY_STAR '+'
#define CHECKED_LAND 'C'
#define BLACK_LAND 'b'
#define WHITE_LAND 'w'
#define SHARED_LAND ' '

struct step_record
{
char command;
int row;
int col;
};

// global variables:
static char boardc[BOARD_SIZE][BOARD_SIZE];
static char turn;
static int kep_row, kep_col;
static int black_eaten, white_eaten;
static int step_num, last_step_num;
static bool remove_dead_chess;
static bool count;
static float black_land, white_land;
static struct step_record step[MAX_STEP+1];

/////////////////////////////////////////////////////////////////////////////
// CGOApp:
// See GO.cpp for the implementation of this class
//

class CGOApp : public CWinApp
{
public:
...

GeneralRe: variable problem Pin
Bob Stanneveld24-May-05 7:18
Bob Stanneveld24-May-05 7:18 
Generalplease help with my attempt to edit subitem of CListCtrl Pin
lucy24-May-05 5:48
lucy24-May-05 5:48 
GeneralRe: please help with my attempt to edit subitem of CListCtrl Pin
lucy24-May-05 9:15
lucy24-May-05 9:15 
GeneralRe: please help with my attempt to edit subitem of CListCtrl Pin
PJ Arends24-May-05 9:26
professionalPJ Arends24-May-05 9:26 
GeneralRe: please help with my attempt to edit subitem of CListCtrl Pin
lucy25-May-05 3:11
lucy25-May-05 3:11 
Generalicons Pin
Dennis L24-May-05 5:42
Dennis L24-May-05 5:42 
GeneralRe: icons Pin
David Crow24-May-05 7:57
David Crow24-May-05 7:57 
GeneralRuntime Error on PCRE library, really need help! Pin
tomfd3s24-May-05 5:07
tomfd3s24-May-05 5:07 
GeneralRe: Runtime Error on PCRE library, really need help! Pin
tomfd3s24-May-05 5:12
tomfd3s24-May-05 5:12 
GeneralRe: Runtime Error on PCRE library, really need help! Pin
jmkhael24-May-05 6:55
jmkhael24-May-05 6:55 
GeneralRe: Runtime Error on PCRE library, really need help! Pin
tomfd3s24-May-05 20:57
tomfd3s24-May-05 20:57 
GeneralMDI Toolbar switch Pin
act_x24-May-05 4:29
act_x24-May-05 4:29 
GeneralRe: MDI Toolbar switch Pin
PJ Arends24-May-05 9:04
professionalPJ Arends24-May-05 9:04 
General_CrtIsValidHeapPointer Pin
Bob Stanneveld24-May-05 4:23
Bob Stanneveld24-May-05 4:23 
GeneralRe: _CrtIsValidHeapPointer Pin
jmkhael24-May-05 6:43
jmkhael24-May-05 6:43 
GeneralRe: _CrtIsValidHeapPointer Pin
Bob Stanneveld25-May-05 21:16
Bob Stanneveld25-May-05 21:16 
GeneralProblem in handling menu :( Pin
nripun24-May-05 4:07
nripun24-May-05 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.