Hi Narue,
Thanks for the help, tough, why is it that in your example, the decimal numbers aren't adding up,
cout<< precision ( 0.123456 ) <<endl;
This for example shows as result 6 and not 21?
Also, why do you use int n = 0, it seems you don't use it in the function?
return s.length() == 1 ? 0 : s.length() - 2;
I understand this to be a selection, but I don't understand what it's doing?
I added this piece of code into the program that I wrote
if ( n >= 1){ a = n; n -= a; a = 0;}
This is because previously when I entered a number like 1,1234 it didn't get rid of the number before the radix.
Not that it matters since it seems I'm not going to solve this exercise with the code I wrote :-|
I see you, Dave and Vegaseat became moderators, very smart from Dani to do this, you guys are a real asset towards this C++ community, congrats to you all :!: