How can I group multiple variables into a single variable?

for example I want all of these to fall into a new variable "salaries".

 
  double analyst = 49888.25, teamLead = 65756.85, manager = 99852;

use a class or a structure.
how? can u give an example code?
Topic archived. No new replies allowed.