retire #define, first step :) c++ approach

This commit is contained in:
mpabi 2024-05-25 16:39:06 +00:00
parent 8190fc9684
commit a7089d248f
1 changed files with 10 additions and 1 deletions

View File

@ -11,6 +11,16 @@ void strcpy(char *s, char *t)
{
while (*s++ = *t++);
}
class GamePlayer {
private:
static const int NUM_TURNS = 5;
int scores[NUM_TURNS];
} c;
#define ALLOCSIZE 10000
static char allocbuf[ALLOCSIZE];
@ -105,7 +115,6 @@ char *simple_strtok(char *str, const char *delims) {
char buf[1000];
struct model * p = (struct model *) buf; //p[1]
//
////func alg