sa
2008-06-12 06:05:49 UTC
Hello all.
I am trying to create structured array dynamically.
I am getting this error message "const expression expected."
struct udtConfigLabel
{
String present,link,last_modified;
WideString title;
};
udtConfigLabel *Lang[3];
Lang[0] = new udtConfigLabel[10];
Lang[1] = new udtConfigLabel[10];
Lang[2] = new udtConfigLabel[10];
It is possible to create the pointer array dynamically, like
int size = //size giving at runtime.
udtConfigLabel *Lang[size];
Kind Regards
SA
I am trying to create structured array dynamically.
I am getting this error message "const expression expected."
struct udtConfigLabel
{
String present,link,last_modified;
WideString title;
};
udtConfigLabel *Lang[3];
Lang[0] = new udtConfigLabel[10];
Lang[1] = new udtConfigLabel[10];
Lang[2] = new udtConfigLabel[10];
It is possible to create the pointer array dynamically, like
int size = //size giving at runtime.
udtConfigLabel *Lang[size];
Kind Regards
SA