Question: How do I program a c++11 static 2D array into as a private member and then fill it? I am trying to program a static
savec gcc version 4.6.3 exit status 1 /tmp/ccEuoN2g.o: In function 'test::fill' main.cpp: (.text+0x82): undefined reference to test:s main.cpp:(.text+0x96): undefined reference to test:a /tmp/ccEuow2g.o: In function test::print() ain.cpp: (.text+xe6): undefined reference to test::c 4 class test 7 private: 8 static int c[2][17]; 9 10 public: 11 test) 12 void fill); 13 void print) 14 i 15 16 test::test() 17 ollect2: error: ld returned 1 exit status 23 24 void test::fill) 25 26 int x, y; 27 for (int i ; i 17; it) 28- 29 cout > x; 31 32 cout y; 34 35 36 37 38 39 40 41 42 43 O a Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
