星光灿烂

C元素

早上睁开眼睛,8点45。  一夜的梦,醒来又不记得梦的内容。又迟到了。

在上个月之前,在两年职业生涯里我没有迟到过一分钟,可最近的一个月,4次迟到,至少让我损失了100RMB 以及珍贵的 8 小时年假。

夜里很快就可以睡着, 可每当早晨来临时, 我就想赖在梦里不肯走。 我明白,现在的日子可能还没办法象以前那么充实,可是我还没有习惯这新的生活,总是试图在梦境里重温那些甜美的记忆。

 

 

27-04-07_1945

 

这只小熊很好,你不用牵挂它。

posted @ 2007-08-15 16:31 菌子 阅读(199) | 评论 (1)编辑 收藏



这首 Love to be loved by you,演唱者是原来natural 乐队的 Marc Terenzi,他在他和 Sarah Connor 的婚礼上,弹琴唱了这首歌。那是2005年七月末,在西班牙的浪漫海边,浪漫的场景,浪漫的主角,Marc在海边的岩石上弹着钢琴演驿了这首 Love to be loved by you,Sarah被感动得流下了属于幸福的泪水。








I can't believe I'm standing here
Been waiting for so many years and
Today I found the queen to reign my heart.
You changed my life so patiently
And turned it into something good and real
I feel just like I felt in all my dreams.
There are questions hard to answer, can't you see...

Baby, tell me how can I tell you
That I love you more than life?
Show me how can I show you
That I'm blinded by your light.
When you touch me, I can touch you
To find out the dream is true.
I love to be loved by you.

You're looking kinda scared right now,
You're waiting for the wedding vows.
But I don't know if my tongue's able to talk
Your beauty is just blinding me,
Like sunbeams on a summer stream
And I gotta close my eyes to protect me.
Can you take my hand and lead me from here please?

Yeah,yeah

Baby, tell me how can I tell you
That I love you more than life?
Show me how can I show you
That I'm blinded by your light.
When you touch me I can touch you
To find out the dream is true.
I love to be loved
I need to be loved
I love to be loved by you.

I know they're gonna say
Our love's not strong enough to last forever.
And I know they're gonna say that we'll give up
Because of heavy weather.
But how can they understand
That our love is just heaven-sent,
We keep on going on and on
Cause this is where we both belong.

Baby, tell me how can I tell you
That I love you more than life?
Show me how can I show you
That I'm blinded by your light.
When you touch me I can touch you
To find out the dream is true
I love to be loved
I need, yes I need to be loved
I love to be loved by you.
Yes, I love to be loved by you.




posted @ 2007-08-14 15:33 菌子 阅读(196) | 评论 (0)编辑 收藏

定期更新blog对我这种懒人来讲不得不说是一种相当巨大的挑战,好在我发现了一个可以让我对写blog产生一点兴趣的东东,就是现在正在使用的 Windows Live Writer。很方便,也很安全,界面也很舒服。

人长大了才慢慢体会到写作是一件十分十分重要的东西,学生时代对爬格子写文章的简直是嗤之以鼻,认为学好数理化才是王道,每天沉迷在数字和原子当中。可事实并不是那么简单,越来越发现数理化大牛们个个也都是文采横溢,著书立传毫不含糊,而且越是学术水平高,写出来的东西越结构清晰,浅显易懂。想想自己写的东西,有时自己都看不懂, 有时根本就看不出来要表达什么意思。

好在我脸皮厚,不怕别人笑话,而且知道写作这玩意儿必须动手写,才能有提高。所以不管怎样,每天定时上来喷两句也许还是有用的。

posted @ 2007-08-09 23:03 菌子 阅读(304) | 评论 (0)编辑 收藏

 我们都知道,C语言中的基本数据类型都分为 有符号型,和无符号型, 分别用signed  和 unsigned 来表示。一般情况下, 对于有符号类型, 声明时可以省略掉前面的signed,  int i 等价于 signed int i. 星星一直以为所有数据类型,在所有的情况都适用此省略规则,直到前两天在ADS上编译一段程序时遇到了一个“灵异的问题“:

定义了一个变量  char ch = -5 ; 可以是编译器却给出了警告, 并且其后的代码中 if( ch < 0 ) 结果为假! 这段代码在vc上面编译是没有问题的。 后来在网上查了一些资料,原来是这样: 对于 char ch 这样的定义 C语言标准并没有强制规定它的是一个有符号数还是无符号数,不同的编译器可以有不同的实现。ADS 认为 char ch 是要定义一个无符号数即 unsigned ch = -5 ,所以会给警告,并且后续的代码工作不正常, 而vc默认 char 为 signed char, 所以没有问题。


解决方法

1. 使用自己定义的数据类型, 在不同平台上只需要重新编译代码


#if defined ( ADS )
typedef signed char CHAR;
#else
typedef char CHAR;
#endif

2. 修改编译器设置

VC可以使用 /J 指令将默认的char类型定义成 unsigned char
ADS 可以使用 --signed_chars 参数来将默认的 char 类型定义为 signed char


3. 除非必要,不要使用 char 类型



posted @ 2007-08-09 17:00 菌子 阅读(1265) | 评论 (0)编辑 收藏
仅列出标题
共2页: 1 2 

导航

<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

统计

常用链接

留言簿(8)

随笔分类

随笔档案

令一片星空

搜索

最新评论

阅读排行榜

评论排行榜