Updating existing deque structure element

Hi all

I want to update the existing struct deque element without affecting anything else.

here is my initialization ..
typedef struct maze
{

int R1,R2,Wno;
char symbol[5];


}Mymaze;

std::deque<maze*> wlist;

wlist deque is already having all structure entries .. I just wanted to replace the existing symbol with space in the existing element at particular location.

PLEASE HELP ASAP nearing deadline.. please

Thanks a LOT...
If you know the index of the element then you can use it to access this element

For example. if i is the target index

wlist[ i ]->symbol[ 0 ] = '\0';
Last edited on
Topic archived. No new replies allowed.