The standard programme of mine has been released

0 views
Skip to first unread message

ZHAO Xin

unread,
Dec 16, 2009, 8:56:21 AM12/16/09
to 09introductiontocomputingforpsy
The standard programs from the 4th to 8th problems.
IF YOU DO FIND ERROR, please contact me ASAP.
THANK you.

--
Xin Zhao
Peking University
monikaoshi1.pdf

ft y

unread,
Dec 16, 2009, 9:07:09 AM12/16/09
to 09introductiont...@googlegroups.com
I think Prof. Sun, Kaiwei Cai and Houping Jia for providing the
support and help for this model test。这句话是啥意思……“THINK”你是不是想说"THANK"
 
1、for(int i = 0; i < n; i++ ) 你确定这样的句子能在VC下面编译通过么?我记得好像它的标准时先声明完所有内容,然后才能使用。如果是c语言的话。
 
啊,scanf("%s")会自动忽略所有空格啊!我刚刚知道,这道题目我又写丑了。

老实说,我对于temp[cnt++]这样的写法其实都难以直接接受,因为我怕错。虽然这样会更漂亮。不过作为标程,这样写比较好。
 
a[50002] = {0},这个能保证全部赋初值为0么……我不是很清楚,所以我自己循环了一遍。
 
从目测来看,我觉得没有问题,提交如果没有问题的话,那就彻底没有问题了。因为我觉得提交来测试更加确定。
2009/12/16 ZHAO Xin <batm...@gmail.com>



--
杨斐曈

北京大学心理学系
地址:北京市海淀区颐和园路5号北京大学38楼440
手机:(+86)15120090340

Yang Feitong
Department of Psychology
Peking University
Postcode:100871
Cell:(+86)15120090340

Email: willi...@gmail.com
v
Reply all
Reply to author
Forward
0 new messages