Editor\'s note: This question predates Rust 0.1 (tagged 2013-07-03) and is not syntactically valid Rust 1.0 code. Answers may still contain v
You could use the macro vec! to create 2d vectors.
fn test(vec: &mut Vec>){ vec[0][0] = 'd'; ..// vec[23][79] = 'd'; } fn main() { let mut vec = vec![vec!['#'; 80]; 24]; test(&mut vec); }