G gonzaga1751 Member Aug 16, 2005 175 0 0 Apr 2, 2007 #1 when i do this code it says that string subscript is out of range at temp2[x] = temp; I'm using Visual Studios 2005 Prof
when i do this code it says that string subscript is out of range at temp2[x] = temp; I'm using Visual Studios 2005 Prof
C Cooler Diamond Member Mar 31, 2005 3,835 0 0 Apr 2, 2007 #2 temp2[x] has no indexes as its blank. You need to give it blank string of size 26 or concatenate.
EagleKeeper Discussion Club Moderator<br>Elite Member Staff member Oct 30, 2000 42,589 5 0 Apr 2, 2007 #3 temp2 is a placeholder at this point. You have no memory assigned to it. therrefore you can not access anything within the defined string - you have nothing to access. Your variable X is attempting to reference memory that is not "assigned/allocated" to the string pointer variable temp2
temp2 is a placeholder at this point. You have no memory assigned to it. therrefore you can not access anything within the defined string - you have nothing to access. Your variable X is attempting to reference memory that is not "assigned/allocated" to the string pointer variable temp2