从www.CppReference.com打包的C++参考手册

源代码在线查看: top.html

软件大小: 840 K
上传用户: dingjuan_01
关键词: CppReference www com 参考手册
下载地址: 免注册下载 普通下载 VIP

相关代码

																				  				  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">								  top				  																				  				  				  								  				    cppreference.com > 				    "index.html">C++ Priority Queues > 				    "top.html">top				  								  				    top				  								  				    Syntax:				  				  				  #include <queue>				  TYPE& top();												  The function top() returns a reference to the top element of the				  priority queue.								  For example, the following code removes all of the elements from a				  stack and uses top() to display them:				  				   while( !s.empty() ) {				     cout << s.top() << " ";				     s.pop();				   }            												  				    Related topics:				  								  				    pop				  				  				  				  												  				  											

相关资源