this is a gcc file, you can download it and learn its usetility, for further detail please look at t

源代码在线查看: template15.c

软件大小: 1331 K
上传用户: pipinooad
关键词: usetility download further detail
下载地址: 免注册下载 普通下载 VIP

相关代码

				// Build don't link: 				// GROUPS passed templates				template class Stack {				  public:				    Stack (int s = 10);         //Comment out "= 10" and it will compile				    ~Stack(void);               //Omitting "void" doesn't help				}; 								template Stack::~Stack(void) 				{ }								//If this definition comes before the one for ~Stack, the error message				//about redeclaration of `void Stack::~Stack()' will not occur.				template Stack::Stack(int s)				{ }								int main () {				    Stack stk(10);				}							

相关资源