w*n
2 楼
时间在人生中绝对不是均匀分布的,到底如何不均匀我不太清楚,但总觉得跟年龄应该
成反比。年少的时候觉得时间过得很慢,仿佛有无穷的未来可以浪费,而到年老,大概
数年光景也只是一晃而过。
我跟秦玉从相识到分开差不多有三年,对我当时的年龄来说,算得上长久了。至少在我
们分别的时候,我觉得我们已经患难与共多年了。而我们如今分开已经八年,时光仿佛
转瞬即逝。想起在机场的最后一面,我竟然记得一切细节,甚至当时的心情。
碍于故知同学的面子,我和秦玉分开的时候并没有机会吻别。当时我拉着秦玉的手,接
近安检门的时候,故意落后故知同学几步,准备找个地方躲一下。但故知 同学相当敏
感且忠诚,立刻停下来等我,看着我们依依不舍的样子,还笑着对秦玉说:“你别担心
,三儿就交给我了,我替你好好看着他。”
我闻言眼前一阵发黑,差点晕厥。
我很想在一个完美的环境下,对秦玉说我爱她,但直到我过了安检,与秦玉隔门相望,
我都没说出口。为了让她别太伤心,我在门这边微笑着,深情地看着她。那时我在想,
心有灵犀的话,她一定看得懂我的眼神,一定能听到我在心里大喊“我爱你”。
这就是满脑子浪漫而脱离实际的坏处。后来秦玉跟我说,当时我的
成反比。年少的时候觉得时间过得很慢,仿佛有无穷的未来可以浪费,而到年老,大概
数年光景也只是一晃而过。
我跟秦玉从相识到分开差不多有三年,对我当时的年龄来说,算得上长久了。至少在我
们分别的时候,我觉得我们已经患难与共多年了。而我们如今分开已经八年,时光仿佛
转瞬即逝。想起在机场的最后一面,我竟然记得一切细节,甚至当时的心情。
碍于故知同学的面子,我和秦玉分开的时候并没有机会吻别。当时我拉着秦玉的手,接
近安检门的时候,故意落后故知同学几步,准备找个地方躲一下。但故知 同学相当敏
感且忠诚,立刻停下来等我,看着我们依依不舍的样子,还笑着对秦玉说:“你别担心
,三儿就交给我了,我替你好好看着他。”
我闻言眼前一阵发黑,差点晕厥。
我很想在一个完美的环境下,对秦玉说我爱她,但直到我过了安检,与秦玉隔门相望,
我都没说出口。为了让她别太伤心,我在门这边微笑着,深情地看着她。那时我在想,
心有灵犀的话,她一定看得懂我的眼神,一定能听到我在心里大喊“我爱你”。
这就是满脑子浪漫而脱离实际的坏处。后来秦玉跟我说,当时我的
s*i
3 楼
int * var = new int;
*var=5;
*var=5;
s*i
4 楼
我在FLORIDA。总体感觉这边还是比较缺数学老师的。但是这边的大学里数学教育的专
业却因为经费问题停开了。既然是缺数学老师,为什么大学里不培养相关的老师呢?这
难道不是恶性循环吗?数学对老美真的就那么难吗?
业却因为经费问题停开了。既然是缺数学老师,为什么大学里不培养相关的老师呢?这
难道不是恶性循环吗?数学对老美真的就那么难吗?
c*6
5 楼
bless!
j*i
8 楼
bless
c*d
10 楼
在美国当数学老师是苦差事
如果找到其他工作,许多有数学学位的人都不愿当老师
真正在数学界搞出名堂的没几个中国人
美国大学里学数学的老美也蛮多的
如果找到其他工作,许多有数学学位的人都不愿当老师
真正在数学界搞出名堂的没几个中国人
美国大学里学数学的老美也蛮多的
i*4
11 楼
bless
c*m
12 楼
depending on where the lines appear:
a:
int *p1 = new int;
int p2 = 5;
int main() {}
Then both p1,p2 are some space reserved in data segment, but p1's address
may have more requirements such as alignment since it's a pointer. p2's
value is stored as 5, however p1's value is inited with an address in heap
by calling alloc during static initialization before main is called.
b:
void foo()
{
int *p1 = new int;
int p2 = 5;
...
}
p1,p2 could be space reserved on stack or simply registers. p2 could b
a:
int *p1 = new int;
int p2 = 5;
int main() {}
Then both p1,p2 are some space reserved in data segment, but p1's address
may have more requirements such as alignment since it's a pointer. p2's
value is stored as 5, however p1's value is inited with an address in heap
by calling alloc during static initialization before main is called.
b:
void foo()
{
int *p1 = new int;
int p2 = 5;
...
}
p1,p2 could be space reserved on stack or simply registers. p2 could b
c*m
15 楼
and of course if you don't delete p1, you have memory leak. :)
N*e
16 楼
美国有这么几个人懂数学就够了,人人都会log没必要
g*n
17 楼
bless
l*d
18 楼
it's about the memory p1 pointed to and p2, not p1 and p2.
【在 c**m 的大作中提到】
: depending on where the lines appear:
: a:
: int *p1 = new int;
: int p2 = 5;
: int main() {}
: Then both p1,p2 are some space reserved in data segment, but p1's address
: may have more requirements such as alignment since it's a pointer. p2's
: value is stored as 5, however p1's value is inited with an address in heap
: by calling alloc during static initialization before main is called.
: b:
【在 c**m 的大作中提到】
: depending on where the lines appear:
: a:
: int *p1 = new int;
: int p2 = 5;
: int main() {}
: Then both p1,p2 are some space reserved in data segment, but p1's address
: may have more requirements such as alignment since it's a pointer. p2's
: value is stored as 5, however p1's value is inited with an address in heap
: by calling alloc during static initialization before main is called.
: b:
c*m
20 楼
that's obvious.
but question asks for difference behind the scene, no mention of anything
specific about memory p1 pointed to and p2 (candidate is supposed to figure
that out). and there're very big differences depending on where they appear
. besides, there's nothing stopping me from making var a pointer to an
integer at location 5:
int var =5;
*((int*)var) = 5;
also, I always thought sizeof(int) == sizeof(void*) but apparently not
because visual studio 64-bit sizeof(int) == 4 and sizeof(voi
【在 l*****d 的大作中提到】
: it's about the memory p1 pointed to and p2, not p1 and p2.
but question asks for difference behind the scene, no mention of anything
specific about memory p1 pointed to and p2 (candidate is supposed to figure
that out). and there're very big differences depending on where they appear
. besides, there's nothing stopping me from making var a pointer to an
integer at location 5:
int var =5;
*((int*)var) = 5;
also, I always thought sizeof(int) == sizeof(void*) but apparently not
because visual studio 64-bit sizeof(int) == 4 and sizeof(voi
【在 l*****d 的大作中提到】
: it's about the memory p1 pointed to and p2, not p1 and p2.
i*o
21 楼
big bless~~~~~~~~~~~
相关阅读