retire #define, first step :) c++ approach
This commit is contained in:
parent
8190fc9684
commit
a7089d248f
|
@ -11,6 +11,16 @@ void strcpy(char *s, char *t)
|
||||||
{
|
{
|
||||||
while (*s++ = *t++);
|
while (*s++ = *t++);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class GamePlayer {
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
static const int NUM_TURNS = 5;
|
||||||
|
int scores[NUM_TURNS];
|
||||||
|
|
||||||
|
} c;
|
||||||
|
|
||||||
#define ALLOCSIZE 10000
|
#define ALLOCSIZE 10000
|
||||||
|
|
||||||
static char allocbuf[ALLOCSIZE];
|
static char allocbuf[ALLOCSIZE];
|
||||||
|
@ -105,7 +115,6 @@ char *simple_strtok(char *str, const char *delims) {
|
||||||
|
|
||||||
char buf[1000];
|
char buf[1000];
|
||||||
struct model * p = (struct model *) buf; //p[1]
|
struct model * p = (struct model *) buf; //p[1]
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
////func alg
|
////func alg
|
||||||
|
|
Loading…
Reference in New Issue