#noob Q

11 messages · Page 1 of 1 (latest)

brave cove
#

-code

toxic kernelBOT
#

Please post your code examples and compiler output with code fences (```) around them. Example:
```rust
let (x, y) = (0, 42);
println!("Position at {}, {}", x, y);
```

let (x, y) = (0, 42);
println!("Position at {}, {}", x, y);

If the snippet is long or you want to demonstrate something, consider sharing it through the playground: https://play.rust-lang.org/ or https://www.rustexplorer.com/ or https://paste.rs/web.
Please avoid sharing screenshots of your code, as they're not very accessible. Using code fences or a shared snippet makes the code more readable and allows those helping you to copy-paste the code to help explain things.

gleaming solstice
small lodge
#

Which variable do you think is a 2d array? cuz I'm not seeing one in your code.

gleaming solstice
#

Variable vc

small lodge
#

You've defined that as a Vec<i8>. As in, a resizable array where each element is a i8.

#

Not an array of arrays (aka a 2d array)

gleaming solstice
#

Ok

#

I will send code later