Hi,
I get passed a string like these examples:
3.1
4.23
1.1
5
I need to seperate the values into two integer variables.
So 3.1 would become
int var1, var2;
//var1 should have 3
//var2 should have 1
if it was 4.23
//var1 should have 4
//var2 should have 23
This is will be on a part of the system, where performance is critical
and need an efficient method for processing strings like this.
Thanks for the help in advance.
Steven
*** Sent via Developersdex http://www.developersdex.com ***
I get passed a string like these examples:
3.1
4.23
1.1
5
I need to seperate the values into two integer variables.
So 3.1 would become
int var1, var2;
//var1 should have 3
//var2 should have 1
if it was 4.23
//var1 should have 4
//var2 should have 23
This is will be on a part of the system, where performance is critical
and need an efficient method for processing strings like this.
Thanks for the help in advance.
Steven
*** Sent via Developersdex http://www.developersdex.com ***
Comment