ive finaly figured it out! the crash is because of string str;
in the loop
Code:
for (int i=0;i<9;i++)
{
memory[4][i]=str[i];
}
i tried to access the str by using index ! and it showed me that string str is rather different than string str[length] !! so that was the catch!
after that i noticed that the function doesnt return anything ! at least if in returns anything , that thing is empty!! why ? because i tried to copy str elements to a buffer using
Code:
char buffer[12];
int length=0;
length=str.copy(buffer,9,0);
buffer[length]='\0';
and then tried to print the stuffs (buffers) on the console screen! but nothing was printed!
well where is the catch this time ? is there any other ways to copy this (string str) form of string to another string (like string str1[n])?