Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
C++
Development 50 codes
Home
C++
Development
1 A simple example that uses typeid
2 A trycatch can be inside a function other than main()
3 An example that uses reinterpret_cast
4 An example that uses typeid for base and derived classes
5 An example that uses typeid on a polymorphic class hierarchy
6 An exception can be thrown from outside the try block
7 Bad_alloc standard exception
8 Catch exception
9 Const_cast Demo
10 Cout
11 Delete memory allocate for objects
12 Demonstrate == and != relative to typeid
13 Demonstrate const_cast
14 Demonstrate dynamic_cast
15 Demonstrate runtime type id
16 Demonstrate some escape sequences
17 Demonstrates const_cast
18 Demonstrating new throwing bad_alloc when memory is not allocated
19 Demonstrating run-time type id
20 Different types of exceptions can be caught
21 Handle exceptions thrown by new
22 Here is a simple example that uses typeid
23 Make current mutable
24 Matching Any Exception
25 No Exception Handling
26 Output a time value with ctime
27 Output command line arguments
28 Output tab
29 Outputs 20 random numbers from 1 to 100
30 Outputs the program name including the path, command line arguments and the environment
31 Overload date() for time_t
32 Printing values in DEBUG mode
33 Rand function
34 Random by time
35 Restricting function throw types
36 Rethrowing an Exception
37 Terminate Handler
38 Throw and catch an exception inside a function
39 Typeid Can Be Applied to Template Classes
40 Typeid for polymorphic class
41 Use a reference with typeid
42 Use const_cast on a const reference
43 Use dynamic_cast to replace typeid
44 Use new operator to allocate memory for object
45 Use static_cast
46 Use system time
47 Uses catch( ) to catch all exceptions
48 Using #define
49 Using command-line arguments
50 Using ctime() to get the current time