《Big C++ 》Third Edition电子书和代码全集-Part1

源代码在线查看: slide040.html

软件大小: 6144 K
上传用户: janeljh1
关键词: Edition Third Part Big
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
					
					
				  
				  
					
					
											 title()
					//-->
				
				
				
				
				
				19.3.5 Exception Specifications (cont.)
					
				
				
				
					
						Syntax 19.3 :
							Exception Specification
				
				return_type function_name(parameters)
					 throw (type_name1, type_name2, ..., type_namen)
				}
				
							
								
									
										Example:
									
				
				void process_products(fstream& fs)
				   throw (UnexpectedEndOfFile, bad_alloc)
										
									
								
								
									Purpose:
									List the types of all exceptions that a function
										can throw.
								
							
							
						
					
				
				
				
				
				
				
					prev
					|top
					|next
				
				
				
				
							

相关资源