g(p,xxx*10+(*p+++0-'0'));\r)\rint main()\r(\rchar *str=',n ,*p=str;\rcout\str2Iong(p);\rgetchar();\rreturn 0;\r)\rC S T L , \r#include <sstream>\r#include <iostream>\r#include <string>\rusing namespace std;\rlong ToLong(string& s)\r|\rlong 1;\ristringstream iss(s);\riss] l;\rreturn 1;\r}\rint main(int argc, _TCHAR* argv[]).\r,-./"0\rstring s = "12356”;\rcout\ToLong(s);\rreturn 0;\r)\rÕÕÖ×9ØÙÚÛÜ#ÝbǤޣ'½C0 L\r#include <iostream>\rusing namespace std;\rlong str2Iong(char* p,long xxx=0L,bool IsPositive=true)\r(\rreturn\r*p=="?(IsPositive?xxx:xxx*(-l)):(*p=='-'?str21ong(++p,0L,false):str21ong(p,xxx*10+*p++\r+0-'0',IsPositive));\r}\rint main()\r(\rchar *str=n -n ,*p=str;\rcout\str2Iong(p);\rgetchar();\rreturn 0;\r} ßàá