int x;
// ok, done with it
// how do I destroy var. x manually?
// then reuse name
float x;
How do I destroy variables manually and use same var. name in same scope?
My actual situation look more like this:
std::ofstream output;
// do stuff
output.close();
// at this point I need to open same output file
// but I want to read/write this time
std::fstream output; // is this even good code? I should destroy previous object first