Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 two dimensional array into my c++ class and fill with user input it using a member function.
However, I keep getting this error that it is undefined.
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

More Books

Students also viewed these Databases questions

Question

LOQ 14-6: Which of Freuds ideas did his followers accept or reject?

Answered: 1 week ago

Question

What will you do or say to Anthony about this issue?

Answered: 1 week ago