0

I seem to be getting an error in this code gdb tells me the segerror is comming from the code:
data[dpos]+=cmd[d];

//Strip tags
                      data[0]="";data[1]="";data[2]="";data[3]="";
                      dpos=0;
                      for(int d=0;d<cmd.size();d++){
                      if(cmd[d]==';'){
                      dpos++;
                      }
                      else{   
                      data[dpos]+=cmd[d];
                      }
                      }
                      cmd="";
                      //end strip

Could anyone please tell me whats going on?

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by NativeCode
0

Dont worry, I created a better method and im having no problems with it so far.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.