assert() is a good way to notify errors but I want to cout an elaborate message.
Of course the following method will work but I needed something better:

if(error){
cout<<"Elaborate message";
assert(0);
}


Good tips anyone?