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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -