Part of my course project (simulate a payment system) requires me to write a C++ code to implement following:
-----------------
[FONT=Calibri, sans-serif][FONT=Consolas, monospace]Accepts a string (input), judge whether it is a valid currency amount or not.
----------
I hope you guys can give me suggestions for:
(1) What kind of possible input scenarios may happen?
(2) What kind of efficient C++ coding approach is great for solving this?
The project is due tomorrow, so your quick help is greatly appreciated.
Regards,
Derek
[/FONT][/FONT]
-----------------
[FONT=Calibri, sans-serif][FONT=Consolas, monospace]Accepts a string (input), judge whether it is a valid currency amount or not.
----------
I hope you guys can give me suggestions for:
(1) What kind of possible input scenarios may happen?
(2) What kind of efficient C++ coding approach is great for solving this?
The project is due tomorrow, so your quick help is greatly appreciated.
Regards,
Derek
[/FONT][/FONT]