P
Peter
Hi,
I want to use an array str, while each array element str
is an array of chars of fixed length, say 40;
The best way to handle this in C# is StringBuilder I guess,
but as legacy C++ code must communicate with my C# app, I
prefer only low-level primitive types, so chars here.
Of course, char [] str = new char[40]; will create an array
of 40 chars for me, but that's not what I want.
I need something like :
for (int i=0;i<50;i++)
{
char [] str = new char[40];
}
I guess, but how to dimension the array str itself. By
using char [] [] .... ????
Confused with the double dimensions, one for the array
lenght of str , and one for the number of chars in each
array element ...
Some help would be nice.
Thanks,
Peter
I want to use an array str, while each array element str
is an array of chars of fixed length, say 40;
The best way to handle this in C# is StringBuilder I guess,
but as legacy C++ code must communicate with my C# app, I
prefer only low-level primitive types, so chars here.
Of course, char [] str = new char[40]; will create an array
of 40 chars for me, but that's not what I want.
I need something like :
for (int i=0;i<50;i++)
{
char [] str = new char[40];
}
I guess, but how to dimension the array str itself. By
using char [] [] .... ????
Confused with the double dimensions, one for the array
lenght of str , and one for the number of chars in each
array element ...
Some help would be nice.
Thanks,
Peter