Talk About Network

Google





Programming > C - C++ Learning > Re: A Question ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 4115 of 4400
Post > Topic >>

Re: A Question about ##

by Ian Collins <ian-news@[EMAIL PROTECTED] > Apr 15, 2008 at 08:09 PM

Xiutao Yang wrote:
> hi,all
>    I have a program about ## ,which is the following.
> =========================================================
> #include <iostream>
> using namespace std;
> 
> class CMyClass {
> public:
>    static int m_i;
> public:
>  CMyClass(){
>   m_i++;
>  }
> };
> 
> #define NEWW(i)   CMyClass *a_##i=new CMyClass();
> #define PPR(i)   cout<<a_##i->m_i<<endl
> #define F(i)   F_##i()

Why are you doing something so diabolical?

-- 
Ian Collins.
 




 6 Posts in Topic:
A Question about ##
"Xiutao Yang" &  2008-04-15 16:05:19 
Re: A Question about ##
Ian Collins <ian-news@  2008-04-15 20:09:01 
Re: A Question about ##
Ben Bacarisse <ben.use  2008-04-15 12:40:30 
Re: A Question about ##
"Xiutao Yang" &  2008-04-15 22:55:40 
Re: A Question about ##
"Xiutao Yang" &  2008-04-15 22:57:12 
Re: A Question about ##
"Xiutao Yang" &  2008-04-15 23:02:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 9:39:43 PST 2009.