Original Post
Hi I add loads of variables like int, bool float to my classes as i go along, and most of the time i need them to start at value 0. But setting this manually in my constuctor is kinda time consuming as i add a lot. Now, i know c++ doesnt auto-init them to 0 (like in java) to optimize but is there any way to override this or otherwise achieve this? I wouldnt mind the small waste of cpu it could be in those cases i need to init it to something other then 0 and it would speed up development. Thanks Erik