LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2004, 02:36 AM   #1
ashwinipahuja
Member
 
Registered: Mar 2004
Posts: 79

Rep: Reputation: 15
set STL errors code attached


hi
i have attached the code . the errors comes at the place subNetwork.insert(current);it crashes out at this line of code
plz can anybody help me out .




if(addThisOne)
{
cout<<" entred the condition addThisOne in CoptimizationEngine "<<endl;
addedAtThisLevel = true;
subNetwork.insert(current);
cout<<"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"<<endl ;
reject.erase(current);

set<CNodeWrapper> & currentFaninNodes = current->getFaninNodes().m_osFanNodes;// raunaque

cout<<"the size is %%%%%%%%%% "<<currentFaninNodes.size()<<endl;
set<CNodeWrapper>::iterator itr_setNodeWrapper,currentFaninNodesBeg, currentFaninNodesEnd;
currentFaninNodesBeg = currentFaninNodes.begin();

currentFaninNodesEnd = currentFaninNodes.end();

cout<<"address of beg "<<(&currentFaninNodesBeg)<<endl;
cout<<"address of end "<<(&currentFaninNodesEnd)<<endl;
cout<<endl;
cout<<endl;
cout<<"the size is %%%%%%%%%% "<<currentFaninNodes.size()<<endl;
for(;currentFaninNodesBeg != currentFaninNodesEnd; ++currentFaninNodesBeg)
{
cout<<" size of @@@@@@@@@@@@"<<currentFaninNodes.size()<<endl;

currentFanIns.insert((*currentFaninNodesBeg)());
cout<<" fan in size raunaque "<<currentFanIns.size()<<endl;
}

/* for(itr_setNodeWrapper=current->getFaninNodes().m_osFanNodes.begin();itr_setNodeWrapper!= current->getFaninNodes().m_osFanNodes.end(); ++itr_setNodeWrapper)
{
currentFanIns.insert((*currentFaninNodesBeg)());
}*/
/* CNode *R_node=((*currentFaninNodesBeg)());

int i=currentFaninNodes.size();
for (int k=0;k<i;k++)
{
currentFanIns.insert(R_node);
cout<<" size of @@@@@@@@@@@@"<<currentFaninNodes.size()<<endl;
currentFaninNodesBeg++;
}*/




}// if addThisOne
else
{

reject.insert(current);
}
}
} // for nodesBeginInit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why are there many strange errors when I use STL in Linux icoming Programming 4 10-11-2004 04:05 PM
error in catch and try . code is attached ashwinipahuja Programming 6 07-05-2004 10:13 PM
STL errors in Linux sheenak Programming 2 06-22-2004 04:54 AM
problem with using STL set and its funciton erase , insert ashwinipahuja Programming 5 06-02-2004 12:29 AM
system crashes when set STL is met ashwinipahuja Programming 0 06-01-2004 02:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration