SOLVED: Refer to a variable through appended strings

Hi all, and i apologize for my poor english.

I began my work experience yesterday and i'm learning everyday about how to use an Arduino material, especially concerning the programming.

I'll try to phrase my problem correclty :

I wanted to know if it was possible to refer to a variable through appended strings (As we can do in Javascript for instance). Let me give you an example :

int thing_1; int thing_2; int number =;

analogWrite("thing_"+"number", 15); // Here i want to send this analogic value to a specific pin, which can be recognized by his number.

Obviously this wont work, i haven't even try it but i want to know if there is a way to do something like this. In a shorter way to say, i want to avoid writing tons of switch case.

Thank you for your time

The construct you're looking for is the array.

HAA Yes thank you, that was so simple, i haven't even think of it.

Thank you very much