first of all, is it possible to do an array of strings? Either that or an array of character sequences (if that's the same thing).
^where the variable y and x are input by the user. It wont let me use a pointer there. Is there any other alternative?Code:string start0 = (" _____________ "); string start1 = ("| ___ |"); string start2 = ("| |_ _| |"); string start3 = ("| |"); string start4 = ("| | | |"); string start5 = ("|_______| |___|"); string *hello[5]; hello[0] = &start0; hello[1] = &start1; hello[2] = &start2; hello[3] = &start3; hello[4] = &start4; hello[5] = &start5; *hello[y].replace (x,1, "X" );



LinkBack URL
About LinkBacks


