+ 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
1 Answer
+ 14
try:
test(int q, int w, int e, int r)
{
list[0]=q;
list[1]=w;
list[2]=e;
list[3]=r;
}