title: Default value of an integer?
body: <p>My program requires several floats to be set to a default number when the program launches. As the program runs these integers will be set to their true values. These true values however can be <em>any real number</em>. My program will be consistently be checking these numbers to see if their value has been changed from the default.</p>
  
  <p>For example lets say I have integers A,B,C. All these integers will be set to a default value at the start (lets say -1). Then as the program progresses, lets say A and B are set to 3 and 2 respectfully. Since C is still at the default value, the program can conclude than C hasn't been assigned a non-default value yet.</p>
  
  <p>The problem arises when trying to find a unique default value. Since the values of the numbers can be set to anything, if the value its set to is identical to the default value, my program won't know if a float still has the default value or its true value is just identical to the default value.</p>
  
  <p>I considered NULL as a default value, but NULL is equal to 0 in C++, leading to the same problem!</p>
  
  <p>I could create a whole object consisting of an bool and a float as members, where the bool indicates whether the float has been assigned its own value yet or not. This however seems like an overkill. Is there a default value I can set my floats to such that the value isn't identical to any other value? (Examples include infinity or i)    </p>
  
  <p>I am asking for C/C++ solutions.</p>