D
DDD
I have some codes:
w_char **sFieldsUri;
sFieldsUri = &(new w_char[2]);
w_char **sValFind = nsnull;
sValFind = &(new w_char[2]);
When I debug my program, I found the above code had some strange
things. sFieldsUri+1 is equal to sValFind+0.
But if I change the codes to the following:
w_char **sFieldsUri;
sFieldsUri = &(new w_char[2]);
for(int i=0; i<2; i++)
{
sFieldsUri = new w_char[100];
}
w_char **sValFind = nsnull;
sValFind = &(new w_char[2]);
for(int i=0; i<2; i++)
{
sVal Find = new w_char[100];
}
sFieldsUri+0, sFieldsUri+1, and sValFind+0, sValFind+1 are all
difference.
Thanks for all.
w_char **sFieldsUri;
sFieldsUri = &(new w_char[2]);
w_char **sValFind = nsnull;
sValFind = &(new w_char[2]);
When I debug my program, I found the above code had some strange
things. sFieldsUri+1 is equal to sValFind+0.
But if I change the codes to the following:
w_char **sFieldsUri;
sFieldsUri = &(new w_char[2]);
for(int i=0; i<2; i++)
{
sFieldsUri = new w_char[100];
}
w_char **sValFind = nsnull;
sValFind = &(new w_char[2]);
for(int i=0; i<2; i++)
{
sVal Find = new w_char[100];
}
sFieldsUri+0, sFieldsUri+1, and sValFind+0, sValFind+1 are all
difference.
Thanks for all.