finish vectors

This commit is contained in:
2026-01-13 06:50:55 +00:00
parent 7d1d94fbc5
commit 8095e5d271
6 changed files with 173 additions and 105 deletions

View File

@@ -35,22 +35,20 @@ fn main() {
);
println!("\ncaroline replaced kyle");
employees[3] = "caroline";
println!("employees are: {:?}", employees);
employee_of_the_month = (months[1], employees[1], ratings[2]);
let (x, y, z) = employee_of_the_month;
println!("\nin {x}, {y} was the employee of the month with a rating of {z}");
employee_of_the_month = (months[2], employees[2], ratings[1]);
let (x, y, z) = employee_of_the_month;
println!("\nin {x}, {y} was the employee of the month with a rating of {z}");
employee_of_the_month = (months[3], employees[3], ratings[0]);
let (x, y, z) = employee_of_the_month;
println!("\nin {x}, {y} was the employee of the month with a rating of {z}");
}