V
vera13
I have to read in a file which has mostly normal floating point numbers
and 2 numbers to throw you off: 41B.495 and 87O.078. The program is
supposd to catch those and replace the B with 8 and the O with 0. I
have the numbers read into a vector array and as they are read in they
are converted to double, but of course it runs into problems with
letters.
So, how would I tell it to check for letters in the string and replace
certain letters for certain numbers?
and 2 numbers to throw you off: 41B.495 and 87O.078. The program is
supposd to catch those and replace the B with 8 and the O with 0. I
have the numbers read into a vector array and as they are read in they
are converted to double, but of course it runs into problems with
letters.
So, how would I tell it to check for letters in the string and replace
certain letters for certain numbers?