Warning: Initialization is only partially bracketed

Hi, I am trying to program a game that uses large tables of numbers for the maps, which look like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
 int map[6][EDGE1][EDGE2] = {
  T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,W,W,W,W,W,W,W,W,W,W,T,T,T,T,T, // 0
  T,T,0,0,0,T,T,T,T,T,T,T,T,T,T,T,T,W,W,W,W,W,W,W,0,0,0,T,T,T,
  P,P,P,P,0,0,0,0,0,T,T,T,T,X,X,X,X,X,X,W,W,W,0,0,0,0,0,0,T,T,
  W,0,0,P,P,P,T,0,0,0,0,0,T,X,C,S,S,S,X,0,0,0,0,0,0,0,0,0,T,T,
  W,W,W,0,0,P,P,P,P,0,T,0,0,X,S,S,N,S,X,0,0,0,0,0,T,0,0,0,0,T,
  W,W,W,W,0,0,0,0,P,P,0,0,0,X,S,S,S,S,X,0,0,0,0,T,T,T,0,0,0,T,
  W,W,W,W,W,W,0,0,0,P,P,0,0,X,X,X,D,X,X,0,0,0,T,T,T,0,0,0,0,T,
  W,W,W,W,W,W,W,T,0,0,P,P,P,0,0,0,P,0,0,0,0,0,0,0,0,0,0,0,T,T,
  W,W,W,W,W,W,W,0,0,0,0,0,P,P,P,P,P,0,0,0,T,0,0,0,T,0,0,T,T,T,
  W,W,W,W,W,W,0,0,0,T,T,T,T,0,0,0,0,T,0,0,0,0,0,0,0,0,0,T,T,T,
  W,W,W,W,W,0,0,T,T,T,T,T,T,T,T,0,0,0,0,0,0,0,0,0,0,0,T,T,T,T,
  W,W,W,W,T,T,T,T,T,T,T,T,T,T,T,T,T,T,0,0,T,T,T,T,0,T,T,T,T,T,
  W,W,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T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of an issue until I got Error: Too many error or warning messages, which won't let me compile.. any suggestions on what I'm doing to get these warning messages in the first place? I feel it must be with the way I lay out the tables, but I need them to look like a map to be able to work practically on it, so I don't know what to do. A way to disable warning messages in some way would also be appreciated.. I'm using Turbo C++ 4.5
Turbo C++? How old is that? I suggest you upgrade to something more recent...

Anyway, when you are defining multi-dimensional arrays like that you have to put {} around ALL of the individual dimensions.
It looks ancient to me, but I guess I just figured all compilers were basically the same and this was the first one I found.. although it doesn't seem to let me use certain code that I see other people use. Any suggestions on a good free compiler?

Also, I attempted to do that, but now I'm getting a declaration syntax error, because I'm not sure exactly how to bracket them I guess.. is this still incorrect?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
 int map[6][EDGE1][EDGE2] = {
  T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,W,W,W,W,W,W,W,W,W,W,T,T,T,T,T, // 0
  T,T,0,0,0,T,T,T,T,T,T,T,T,T,T,T,T,W,W,W,W,W,W,W,0,0,0,T,T,T,
  P,P,P,P,0,0,0,0,0,T,T,T,T,X,X,X,X,X,X,W,W,W,0,0,0,0,0,0,T,T,
  W,0,0,P,P,P,T,0,0,0,0,0,T,X,C,S,S,S,X,0,0,0,0,0,0,0,0,0,T,T,
  W,W,W,0,0,P,P,P,P,0,T,0,0,X,S,S,N,S,X,0,0,0,0,0,T,0,0,0,0,T,
  W,W,W,W,0,0,0,0,P,P,0,0,0,X,S,S,S,S,X,0,0,0,0,T,T,T,0,0,0,T,
  W,W,W,W,W,W,0,0,0,P,P,0,0,X,X,X,D,X,X,0,0,0,T,T,T,0,0,0,0,T,
  W,W,W,W,W,W,W,T,0,0,P,P,P,0,0,0,P,0,0,0,0,0,0,0,0,0,0,0,T,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
 };


Do I possibly have to bracket every line of that? I tried that with a smaller table, and it didn't seem to work either

1
2
3
4
 int monsterstats [3][13] =
 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }  
 { 2, 0, 1, 2, 1, 1, 1, 1,50, 0, 0, 0, 0, }  
 { 5, 0, 2, 4, 1, 2, 2, 2,50, 0, 0, 0, 0, }; 
Last edited on
I fixed it, although it was very confusing. This seemed to work, thank you!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
 int map[6][13][30] = {{{
  T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,W,W,W,W,W,W,W,W,W,W,T,T,T,T,T },{// 0
  T,T,0,0,0,T,T,T,T,T,T,T,T,T,T,T,T,W,W,W,W,W,W,W,0,0,0,T,T,T },{
  P,P,P,P,0,0,0,0,0,T,T,T,T,X,X,X,X,X,X,W,W,W,0,0,0,0,0,0,T,T },{
  W,0,0,P,P,P,T,0,0,0,0,0,T,X,C,S,S,S,X,0,0,0,0,0,0,0,0,0,T,T },{
  W,W,W,0,0,P,P,P,P,0,T,0,0,X,S,S,N,S,X,0,0,0,0,0,T,0,0,0,0,T },{
  W,W,W,W,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },{
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },{
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },{
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },{
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },{
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },{
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },{
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },{
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
 }};
The way you are bracketing them looks confusing to me...

In any case, why not store this kind of information in a binary data file?
leadergld wrote:

It looks ancient to me, but I guess I just figured all compilers were basically the same and this was the first one I found.. although it doesn't seem to let me use certain code that I see other people use. Any suggestions on a good free compiler?


On Windows you may use Visual C++ 08 Express Edition. It's available for free.

Another great compiler (and I strongly recommend this) is GCC (GNU C Compiler).
If you're using Linux then you already have GCC, just download G++ then.

On windows, I'd suggest installing MinGW which installs most of the GCC including G++.
You could also use Cygwin.

Both are absolutely free! (Geez... it looks like I'm advertising, haha).
Last edited on
Haha.. Well, the guess-and-check process in which I came to figure out how to bracket them was long and confusing, and that's just how it ended up when I finally got it to compile.. If storing it in a binary data file would be easier, I would willingly do it, however I don't have any advanced programming knowledge, and am actually trying to get this game together based on whatever fragments I can remember from a basic Programming in C class I took 6 years ago in high school. If you should find the time to help explain what a binary data file is, I would greatly appreciate it.. whenever I try to look up advanced functions like that online, I just get buried in lingo I'm no longer familiar with.

And thank you very much for the compiler suggestions, I use Windows and am in the process of getting Visual C++ 2008 Express Edition right now.. I'm pretty excited, because Turbo C++ has been acting stranger and stranger, and I'm sick of it telling me that namespaces don't exist.
Wow... that's a lot of letters.

Anyway, g++ and MinGW are strongly recommended. If you'd like an IDE to use with either of those, I recommend Code::Blocks and/or NetBeans.

-Albatross
Topic archived. No new replies allowed.