QT方面的开发

源代码在线查看: stl-stack.cc.svn-base

软件大小: 563 K
上传用户: nassdaq
关键词: 方面
下载地址: 免注册下载 普通下载 VIP

相关代码

				// Filename: STL-stack.cc				// Adapting a stack from a vector				#include 				#include 				#include 				#include 				using namespace std;								int main() {				    stack strStack;				    string quote[3] = {				                          "Any food that starts out hard will soften when stale.\n",				                          "Any food that starts out soft will harden when stale.\n",				                          "Isaac's Strange Rule of Staleness\n"				                      };								    for (int i =0; i < 3; ++i)				        strStack.push(quote[i]);				    while (!strStack.empty()) {				        cout 				        strStack.pop();				    }				}												/*out				OOP> gpp STL-stack.cc				OOP> a.out				Isaac's Strange Rule of Staleness				Any food that starts out soft will harden when stale.				Any food that starts out hard will soften when stale.				OOP>				*/			

相关资源