W
weg22
Hi all,
The program below correctly prints out -7 in the console window:
int _tmain()
{
float test = 0.0;
String* line = S"0.1 -7";
Char chars[] = {'\t'};
String* split[] = line->Split(chars);
Console::WriteLine(split[1]);
}
How can I properly convert split[1] into a float? That is, I'd like
to do something like test = 2.0 * atof(split[1]) in order to have
-14.0 print out in the console window (without modifying the program
above).
Thanks in advance,
-weg
The program below correctly prints out -7 in the console window:
int _tmain()
{
float test = 0.0;
String* line = S"0.1 -7";
Char chars[] = {'\t'};
String* split[] = line->Split(chars);
Console::WriteLine(split[1]);
}
How can I properly convert split[1] into a float? That is, I'd like
to do something like test = 2.0 * atof(split[1]) in order to have
-14.0 print out in the console window (without modifying the program
above).
Thanks in advance,
-weg