Firstly I've created this C++ Console game with OOP in 1 file , then added 1 file with types and then separated each Class to a separate file(s) and there's appeared an issue :
Whatever value is set to Default of struct CellValue , the array in DataBoard fill with -858993460 instead of Default and the program can't work normally:
when it's time to randomly spawn a ship on board it check if there is already a ship to avoid spawn one over the other comparing a DataBoard array value (whitch is -858993460) with (eg ) -1, then again sellect random spawn coordinates ... there is infinite loop.
The only "fix" I found is to set Default of struct CellValue to the value that fills the DataBoard (-858993460).

