Author Topic: Simple Question: How to ensure correct type input?  (Read 3430 times)

Orin27

  • Guest
Simple Question: How to ensure correct type input?
« on: April 24, 2010, 07:33:18 pm »
I'm looking to perform input validation in a simple program I'm writing. I have an int to be input, and want to ensure that the user does input the correct type, otherwise my program runs infinite. What's the best way to handle this? It appears there is no isDigit() and atoi() functionality in C::B.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Simple Question: How to ensure correct type input?
« Reply #1 on: April 24, 2010, 07:47:12 pm »
C::B is "just" an IDE not a compiler.
So your question has nothing to do with C::B and therefore violates our forum rules.

Topic locked !