SSCANF in C++ .NET 2005?
i'm using .NET visual Studio 2005,
From my time with C# i've used scanf regulary.
now i want to reformat a string:
like:
double one;
double two;
double three;
String ^four;
String ^newString = "11111@222222:333333,FOUR-FOUR";
sscanf(newString, "%d@%d:%d,%s",one,two,three,four); // did it like this in C#
Console::writeLine("one = "+one);
Console::writeLine("two= "+two);
Console::writeLine("three= "+three);
Console::writeLine("four= "+four);
Output:
one = 111111
two = 222222
three = 333333
four = FOUR-FOUR
But my sscanf doesnt work?
why is this?
edit:
it works when i use:
float a;
float b;
char bytes[] = "12$23";
sscanf(bytes,"%f$%f",&a,&b);
Console::writeLine("A = "+a);
Console::writeLine("B = "+b);
Output:
A = 12
B = 23
But now i want to use STRING'S or other stuff than a FLOAT

