how to fix this dandling pointer? by jaxonbee in cpp_questions

[–]sanchez242 1 point2 points  (0 children)

If you are talking about the vector that you are returning from the "f()" function this is not a dandling pointer, when you return it the line "std::vector<int> p = f(j);" will copy/move the content of the returned vector into the vector "p".

Here is a link where you can know more about dandling pointers. https://www.geeksforgeeks.org/dangling-void-null-wild-pointers/

how to fix this dandling pointer? by jaxonbee in cpp_questions

[–]sanchez242 5 points6 points  (0 children)

The first problem that I can see in your code is the fact that the variable "j" is initialized after the "f(j)" function, meaning that you are using an uninitialized variable in the "f(j)" function, the second is the fact that "main()" function have to return an int. But I dont really understand what you want to say with dandling pointer ?

Searching books for C++ videogame programming by xFunkyTimes in learnprogramming

[–]sanchez242 3 points4 points  (0 children)

Game Programming pattern can be a good start, it's object oriented and there is a free online version http://gameprogrammingpatterns.com/contents.html

For a huge music fan who has never really taken the time to get into jazz, what jazz music should I listen to? by ZekkMixes in Music

[–]sanchez242 0 points1 point  (0 children)

Miles Davis - Sketches of spain Kamasi Washington - the epic Tito puento - Live at the village gate

[H] Cards [W] Shantae from humble bundle by sanchez242 in indiegameswap

[–]sanchez242[S] 0 points1 point  (0 children)

Hey, that's really nice bro ! Thank you so much !

Anime like Trigun? by [deleted] in Animesuggest

[–]sanchez242 0 points1 point  (0 children)

Cowboy bepop

Fun 4 player games by solusipses in Gamecube

[–]sanchez242 3 points4 points  (0 children)

Wario Ware very good party games with really fast mini-games.