This entry was posted on Wednesday, October 8th, 2008 at 7:11 am and is filed under code|编程 .
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
I was glad to talk with you in the lunch time, really.
You should hava a good impress about my road.
I thirst for you joining us, anytime. My email is rockywjj@gmail.com
God will give you a hand in your road of pursuing that pretty girl
October 9th, 2008 at 8:30 pm
I was glad to talk with you in the lunch time, really.
You should hava a good impress about my road.
I thirst for you joining us, anytime. My email is rockywjj@gmail.com
God will give you a hand in your road of pursuing that pretty girl
October 21st, 2008 at 9:18 pm
1.
合法,++ 是单目运算符;
2.
#define SWAP(a,b) \
(a) = (a) + (b); \
(b) = (a) - (b); \
(b) = (a) - (b);
3.
void main()
{
if (printf("Hello, World\n")) {}
}
4.
Node *p = first;
Node *q = first;
while(q) {
if ( p == q ) break;
q = q->next;
}
October 21st, 2008 at 10:31 pm
Dig同学,第1,2,4道做错了, 第一道题实际上很有难度。 第二道估计你应该做对了,但有笔误,第四道题,你只考虑了头尾相连的成环的情况,还有一种情况是从中间某个地方开始成环你没有考虑。
October 21st, 2008 at 10:51 pm
是,考虑欠缺了。中间开始有环的,最死的遍历能解决,不知道有没有优解
October 22nd, 2008 at 6:19 am
有优解,想知道答案的话给我发邮件好了,我不能在这里放答案。
October 22nd, 2008 at 9:26 am
试着编译了一下第一题,果然报错了,a++++这里错了,错误信息报告没有左值可以操作??
问题应该出现在第二个++上吧?
顺便说一下,博主起的真早啊,或者睡的很晚
October 22nd, 2008 at 10:15 pm
呵呵,是起的有点早,已经接近答案了。