This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Calculator Programming subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.
How do I take input via cin, but only accept numerical input and not letters and symbols in C++? Surprisingly this is harder than I thought, but I suppose after working with C# I just got use to the built in libraries to handle this.
Edit: Oh yeah the variable type would be a double so what I'm trying to do is
double NUMBER = NULL;
cin >> NUMBER;
Last edited by Guest on 01 Sep 2010 05:16:56 pm; edited 1 time in total
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.