Segmentation fault

We have two maps:

map<string,string> x;
map<string,pair<string,string> > y;

The program ends when we write "****", but the terminal is showing us a Segmentation Fault before ending, without doing nothing with the maps.

Help?



I don't think those two lines is the cause.
class Cjt_variables
{
public:
//Constructores


Cjt_cars();


void read_store_deffine(string expe);

string modify_comand(string s,string va);

private:

map<string,string> cars;
map<string,pair<string,string> > function;
};

#endif




THIS IS THE CLASS CODE. If someone can help...:)
You need to show us the code that uses that class. There's nothing in that class definition but method declarations and data members.

I strongly recommend you step through the code with a debugger, so that you can see exactly where your program crashes, and examine the state of the memory at that point.
Topic archived. No new replies allowed.