b*****s 发帖数: 67 | 1 %let one=1;
%let two=one;
%let three=two;
%let four=three;
%put I want three, so I get &four;
%put I want two, so I get &&&four;
%put I want one, so I get &&&&&&&four;
%put I want 1, so I get &&&&&&&&&&&&&&&four;
* 2*1+1 for two level;
* 2*(2+1)+1 for three level;
* 2*(2*3+1)+1 =15 for four level; | S*x 发帖数: 705 | 2 lol
有意思
【在 b*****s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : %let one=1; : %let two=one; : %let three=two; : %let four=three; : %put I want three, so I get &four; : %put I want two, so I get &&&four; : %put I want one, so I get &&&&&&&four; : %put I want 1, so I get &&&&&&&&&&&&&&&four; : * 2*1+1 for two level; : * 2*(2+1)+1 for three level;
| f*******0 发帖数: 693 | | i******n 发帖数: 839 | 4 我不觉得无聊。做%DO LOOP,这个很有用。
寄信人: deliver (自动发信系统)
标 题: 本站转帐通知单
发信站: BBS 未名空间站 (Mon Apr 30 23:29:30 2012)
来 源: mitbbs.com
integrin,您好:
您转给 bbbless,现金(伪币):20,收取手续费:0.2
同时附加了如下留言给 bbbless.
Thank you for your SAS Macro
站务 | m******u 发帖数: 277 | | a******n 发帖数: 11246 | | l******n 发帖数: 9344 | 7 非常无聊的run了一下,很好很强大
【在 b*****s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : %let one=1; : %let two=one; : %let three=two; : %let four=three; : %put I want three, so I get &four; : %put I want two, so I get &&&four; : %put I want one, so I get &&&&&&&four; : %put I want 1, so I get &&&&&&&&&&&&&&&four; : * 2*1+1 for two level; : * 2*(2+1)+1 for three level;
| P****D 发帖数: 11146 | 8 not 2^x-1?
【在 b*****s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : %let one=1; : %let two=one; : %let three=two; : %let four=three; : %put I want three, so I get &four; : %put I want two, so I get &&&four; : %put I want one, so I get &&&&&&&four; : %put I want 1, so I get &&&&&&&&&&&&&&&four; : * 2*1+1 for two level; : * 2*(2+1)+1 for three level;
| b*****s 发帖数: 67 | 9 yes. 2^x-1 is smarter:) 3x!
【在 P****D 的大作中提到】![](/moin_static193/solenoid/img/up.png) : not 2^x-1?
|
|