Hello, newbie in C++. A problem just wondering. I have to enter a value as a C string in the form xxx,xxx,xxx,xxx,xx.xx, where x can be any digit. so(35,000.00) is an example.
Question: would it be best if I do a switch statement with each cases for the digits, commas, and period? Any tips is appreciated before I tackle this work. Was sketching a diagram and it would seem I would have to create 11 cases.