I****M 发帖数: 143 | 1 我也有过很多这样费时费力的经历, 觉得有几条可能有用.
1。遵守syntex: 该predefine就predefine, 该分号就分号, 该对齐的loop就对齐. 如
果lz也用Matlab(2008以上版本),会发现一个没有违反任何syntex的code,最后的.m
file右上角会有一个绿色的小方块;没有syntex错误,但是有改进余地的,出现桔红色
方块;有明显错误的会有红色方块。这是排除基本错误的第一步,有时还能提高循环的
效率。
2。尽量减少使用的变量数目,但是提高变量名的信息度,这对于经济学问题尤其有用
。太多变量不好管理,占据内存,降低速度。
3。非常同意楼上强调的通用性。比如两个变量有关系,尽量写成函数关系。在定义关
系时,考虑到这个变量可能取extreme value,可能变成vector, 甚至是matrix,所以
要允许general的函数形式和运算符号。
4。用有解析解的一阶条件作为benchmark,去检验数值解。大多数用数值方法求解的
问题自然是没有解析解的,但是在一些特定的functional form,比如消费问题中的
CRRA, log-Normal |
|
o***g 发帖数: 2784 | 2 what do you want to test?
syntex? |
|
n*******s 发帖数: 4 | 3 I am very new to PL/SQL. Wish somebody can help me out.
Try to write something to a local file from a procedure, not just spool the
buffer, coz the buffer has limit of 255 char per line which is not large
enough for me. If you know how to increase this, please let me know.
I googled and found a package called UTL_FILE. Following the syntex, I wrote
something like this:
DECLARE
f utl_file.file_type;
BEGIN
f := utl_file.fopen('c:/nerdgirl', 'test.txt', 'w');
utl_file.put_line(f, 'blahblah |
|
s*i 发帖数: 5025 | 4 1。 ArrayList
I added some integers into it, say
=======
ArrayList *list=new ArrayList();
list->Add(__box(12));
...
Now, how do I test if integer "12" is there or not? Using Contains()? What is
the syntex?
2. Array problem
在头文件里面定义
int arrayTest __gc [];
现在得知数组全部数据为 1,2,3,4,5。怎么很简洁的初始化数组? |
|
w******d 发帖数: 675 | 5 1. connection string with different provider
2. there are some (not too many) T-sql syntex are different
3. not sure if c# is using inline t-sql or procs/views. might be much easier
if using proc/views. |
|
k****t 发帖数: 2288 | 6 你这个编译有错~~~
说syntex error。
应该是这个define有问题
I am not sure what you need.
but by my understand ~
#include
#include
#include
#define transfer(x) ({char *tmp=(x); \
int i,sz=strlen(tmp);\
char *ret=(char *)malloc(sizeof(char)*sz*2);\
for(i=0;i
ret[2*i]=tmp[i];\
ret[2*i+1]='\0';\
}\
ret;})
int main(){
char *t;
t=tran... 阅读全帖 |
|
m*****8 发帖数: 654 | 7 i'm doing proc report and ods rtf, now my variable I want it to show like
this:
original: china guangdong guangzhou
I want to show like:
China
Guangdong
Guangzhou
in the table, how can I do that in proc report? Or how can I do that in data
steps by cocatinating?
question 2:
how to define the width in the output table, since width= do not work for
ods, is there a syntex in 'style'??
question 3:
do a page breat after a group. I guess I can find that in the book, just
want to cast it to keep lazy.. |
|
r********e 发帖数: 1686 | 8 标题写30分钟,又变成3个半小时?lz是还没电面还是?
把常用的procedure, data step syntex都熟记在心,会让你写简单程序的。至少经历
过一个电面是要口述程序的。
网上找到sas technical interview questions都过几遍,有时候经常问到犄角旮旯里
不用的option什么的,比较郁闷。
恭喜lz拿到onsite,回来写面精啊 |
|
l***a 发帖数: 12410 | 9 you can try sas pearl syntex. or use the combination of some sas functions (
scan, translate, compbl, tranwrd... etc). I used the 2nd method and it works
well |
|