why am i getting an infinite loop in this piece of code:
Is it because i should have flushed something and i didn't??Code:while((( *(str+index)) != '(') || ((*(str+index)) ! = '\0'))//while char is not '(' and not end of string, increase index { index++; }
If that's the case how do i do that??
coz i've been trying delete [] str;
and this doesn't work