If I wanted to declare a large number of variables that were all similar, for example: var x1; var x2; var x3; var x4; var x5; var x6; var x7; var x8; var x9; var x10; var x11;...etc Is there a faster way to do that? Maybe something with loops?
i don't know what you mean when you say similar... if they are the same type (int for example) you can declare an array like this : int x[11]; see this learncpp.com/cpp-tutorial/61-arrays-part-i/