[an error occurred while processing this directive]
|
#define WITH(cls,obj) {struct WithTmpClass: public cls{void do_with(){
#define END_WITH(obj) } }; ((WithTmpClass&)obj).do_with();}
struct tip
{
float a;
float b;
float c;
};
tip ss;
main()
{
WITH(tip, ss)
b=1;
c=2;
a = b+c/b;
END_WITH(ss)
}
E-mail: info@telesys.ru