hello friends, the following code is not running but it replace n by j
& create error i.e. undeclared tokenj . but i want to call
token0,token1 from the loop in main.how it could be achieved.plz tell
me
#include <iostream.h>
#define paster(n) token##n##() //token pasting
int token1() //token1() defination
{
return 1;
}
int token0() //token1() defination
{
return 0;
}
void main( )
{
for(int j=0;j<2;j++) //for Loop for j=0,1
{
int i=paster(j); //to call
token0(),token1()
cout<<"\n"<<i;
}
}