Hello,
I currently have this algorithm, it only accepts 2 digits for input,
Code:
while(bControlLoop){
one = getch()-'0';
one=one*10+getch()-'0';
if (!(one >= '0' && one <= '9')) bControlLoop = false;
}
but I think I think 'iamnothere's suggestion of reading in a string and converting it to a double with strtol/strtod sounds very good. Or maybe just using scanf to get an integer, I have to look it up and apply it to my code and see how I can work it out. So far it is 300 lines of code in 9 files and I'm going to have to reformat everything to get it displaying nCurses in the terminal.
Thank you very much for your replies, I really do appreciate your help.
Andrew