+ 1

How to use arrays inside a class?

I want to make a class wich will save 4 numbers inside an arrange, but im not sure how i can initialice It, I post my Code, someone can explain me where is the error? https://code.sololearn.com/c2fhg94bV2Ad/?ref=app https://code.sololearn.com/c2fhg94bV2Ad/?ref=app

20th May 2018, 12:58 PM
Antonio Cases Gómez
Antonio Cases Gómez - avatar
1 Odpowiedź
+ 14
try: test(int q, int w, int e, int r) { list[0]=q; list[1]=w; list[2]=e; list[3]=r; }
20th May 2018, 1:31 PM
jay
jay - avatar