title: Find out Type of C++ Void Pointer
body: <p>I have a small question: how do I find out what type a C++ pointer is?</p>
  
  <p>I often use a small function in my console programs to gather input, which looks something like this:</p>
  
  <pre><code>void query(string what-to-ask, [insert datatype here] * input)
  </code></pre>
  
  <p>I would like to create a generic form, using a void pointer, but I can't cin a void pointer, so how to I find out it's type so I can cast it?</p>