Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

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);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vector #rust
ADD COMMENT
Topic
Name
3+6 =