title: Restrict user to input real number only in C++
body: <p>How can I restrict the user to input real numbers only in C++ program?</p>
  
  <p><strong>Example:</strong></p>
  
  <p>double number;
  cin >> number;</p>
  
  <p>and it won't accept the input like: '12add' , 'abcd' etc...</p>
  
  <p>can someone guides me to that? using bool value.
  Thanks!</p>