Hi there.. im doing a program for my class and now im having a problem here.. im converting numerci bases ( decimal => hexadecimal, octal => decimal, etc ), but my problem is that i dont get how to validate typed numbers.
For example when im converting from binary to any base how can i get the values or the keys pressed by the user.. and dont allow number > 1 and tell the user to type the right numbers... and the same with octal..
Heres the code in an attachment.. hope you can help
Question
Nxt_Gate
Hi there.. im doing a program for my class and now im having a problem here.. im converting numerci bases ( decimal => hexadecimal, octal => decimal, etc ), but my problem is that i dont get how to validate typed numbers.
For example when im converting from binary to any base how can i get the values or the keys pressed by the user.. and dont allow number > 1 and tell the user to type the right numbers... and the same with octal..
Heres the code in an attachment.. hope you can help
Thanks!
program.txt
Link to comment
Share on other sites
0 answers to this question
Recommended Posts