Answers for "2d vector rust"

0

2d vector rust

fn test(vec: &mut Vec<Vec<char>>){
    vec[0][0] = 'd';
    ..//
    vec[23][79] = 'd';
}

fn main() {

    let mut vec = vec![vec!['#'; 80]; 24];

    test(&mut vec);
}
Posted by: Guest on March-06-2022

Browse Popular Code Answers by Language