string - how to execute an for loop till the queue is emptyin c++ -


i need execute loop till queue empty code

queue<string> q; for(int i=0;i<q.size(),i++) {      // operation goes here      // datas added queue } 

while (!q.empty()) {     std::string str = q.front();      // todo: str.      q.pop(); } 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -