for .NET.\rvoid main()\r{coutGnmain function,,G endl;\rtry{ f(); }\rcatch( char *)\r{ coutGMexception2nGendl;}\rcoutGnmain function,,Gendl;\r)\rvoid f()\r{ Tt; }\r1 23#\r1 StringC¦§./#¨-new©oª«jT¬8®¯Qp-try°X12charCD@PQ\r- catch:;g@P±!V@P{|N\²{|³~aª«©o´µ¡1@P¶({|a·Q\rP¸@P{|¹\r#include <iostream>\r#include <cstring>\rusing namespace std;\rclass String {\rpublic:\rString(const char*);\rString(const String&);\r-String();\rvoid ShowStr() {coutGsPtrGendI;}\rprivate:\rchar *sPtr;\r)U\r2 1 º»Q¼½/Lx¬¾¿Q¨sÀ5ÁÂN{|x£¤¯W\r3 ÃÄ12@PCCexception,5®Å./reason,-ÆÇÈ@PCDÃÄ12./funl()°X@PQ\r./tryÉ"#,-fu n l(), catchÉ"#:;@PQÊË?3q(Ì?\r7.9:#\r1 C++#@P{|ÍÄQ-\nÎÏÐ\r2 0 try"#`p@P]Q?3Ñ]\nÒÓÔtry"#ÕÖq(]eÐ\r3 ÎÏ×`p@PÐ catch 4;ØÎÏ@PÙ/?\nÛÜ@PÙ/CDÝ\nÛÜÙ/Þ{|@P?ß\ràá?3âã