b's profileduke的共享空间PhotosBlogListsMore Tools Help

Blog


    August 20

    一个小技巧,为什么添加全局变量会在link的时候报错

    为什么添加全局变量会在link的时候报错?
     
    为什么呢? 这是因为 在 A.h文件里面
    我们声明
     
    class myClass{
    ......
    } A;
     
    然乎在 A.cpp文件里面
    我们include了一次 A.h
    这样我们就实例了一次 A
     
    然而 在 main.h文件里面
    我们第二次include了一次 A.h
    导致又实例了一次 A这样 link的时候就有两个 A了,所以会报错
     
    解决的办法是什么呢? 在 A.h里面我们声明为
    extern class myClass{
    ......
    } A;
     
    然后在 A.cpp文件里面 我们 写 myClass A;
    这样就没问题了
     
    呵呵
     
    October 09

    to be or not to be, what a fXXing problem!!!!

    .........
    纠结的抉择......
    约克的夜......
    奥斯河的洪水......
    疯狂的酒鬼......
    赛百味的味道......
    以及
    荡漾在杯子里,弥漫在口鼻中,蔓延在四肢白骸的捷克丹尼
    ........
    ..................

    TMD  to be or not to be, what a fXXing problem!!!!


    November 10

    博克重新开张,谢谢

    一万年没写博克了,已经记不到博克为何物了
    现做出重大决定:重新开张
    其实前几天,落地满一年的那天,心中超有所感
    只是偷懒,就没有写下来,55555~~~~~~~~~。懒虫阿~~~~~~~~~
    总结一下最近的生活吧。单调的乏味。无非就是 骂fucking idiot, 上网,睡觉,又跑去骂fucking idiot.如此循环以至无穷。检讨一下,这种乏味的宁静,差点没消磨掉自己的意志。危险啊,天天小日子过的蛮充实的,就这么忙着,什么都不想了,一天天就混过去了。什么梦想阿,什么奋斗啊,早抛到脑后去了。那天偶然重新翻自己的博克,又看到了自己写的诗,那眼泪时止不住的流啊。这里要感谢Tim大哥,那天一句话惊醒梦中人,吓得我屁滚尿流失了魂。多如牛毛的事情剪不断理还乱,都等待着一件一件的去解决,可我白白浪费了一个月的时间。看来真正的idiot就是我!!!55555~~~~~~~~~~
    郁闷!睡觉去了!!!!!
    October 22

    哦呵呵呵呵呵york第一份blog~~~~~~~~~

    好久都没更新msn了,突然发现自己已经没有了写blog的习惯
    ~~~~~~~~~~~~
    呵呵,就随便写一点心得吧,好歹来了快一个月了,虽然有点乱
    这个真是不来不知道啊~~~~~
    一来才发现这个学校~~~~简直就是一个公园嘛~~~~~
    一个长满了各种鸟类的湖,里面还有天鹅~~~~~
    虽然好友行马说,看见天鹅,就让之想到鸭脖,
    不过我还是从鸭脖的魅力中,挣扎着发现了她的美~~~~~
    黑天鹅:血红的头顶,流线曲线的,贵族气息的脖子,
    全身乌黑的羽毛,傲然群鸟向天长啸的王者风范
    ~~~~~~~~~
    简直是太美了~~~我每次见到这些黑天鹅,都会处于混顿状态,进而暴走
    导致一起混的那个台湾大哥老是对我说
    "医生明明只让你吃两颗药,你为什么要吃三颗阿!!!"
    &^%%#$%#%$&%*&^&~~~~~~~
    那天,我还看到一个异常经典的景象,
    那时一个雨过天晴,我下课,从 歌德瑞克 学院前面的桥上路过
    正在这时,听见 温特沃斯 方向传来无比雄壮一阵的鸟叫
    我本能地把头转向 温特沃斯 方向,霎那间,我看到奇景
    从 温特沃斯 方向湖边那一排树后面
    整整齐齐飞出了至少150只以上的加拿大鹅~~~~~~~
    排着整齐的队伍,5个一小组,5个一小组
    5个小组由组成一个大组,5各又是更大的组,
    越发大的组,巨大的组。。。。这样一层一层的排着
    从我头上掠过,然后整齐划一地,优雅地落在湖中央驻水面上
    落水的水迹,几百条,成平行现状
    那场景就像二战日本签署投降时,所有美国航母上的飞机
    编队掠过那艘战列舰的著名照片,雄壮的一忆P阿~~~
    我那天上课,没带相机,肠子都悔青了阿~~~~~~~~
    ~~~~~~~~~~~~~
    说到那个台湾大哥,那才真正是牛的一P的人
    台湾研究生毕业,在大学教了3年书,经济金融,国贸计量,什么都教。
    最后终于悟出经济学就是伪科学的一种的普遍真理
    于是又去数研所混了两年,于是到我们班上来了
    那真是经济学的没有什么不知道,数学的知道一大半
    英语又牛的一P,
    我无地自容阿~~~~~~~太牛了~~~~~~~~~仰慕之~~~~~~
    还有一个professor,教 离散模型与金融衍生产品
    才从非洲回来,名字叫Nigel,很像传说中的“忍着”阿~~~~
    呵呵,一看相貌就是牛的一P的那种,第一天一冲进来就说
    我的爱好是纯数学方向~~~~~~~~~
    越发仰慕之啊~~~~~~~~~~~~~
    呵呵,发现了自己,还是不得行啊,要努力啊
    最近搞到一本shreve的书,貌似是我们专业的bible,彻夜研习之~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    还有,我最近搞到一本二手的罗德瑞,3本合一的,比砖头还厚,珍藏之
    可惜dish不在,无人分享,要是给那个台湾大哥看到,又要说我吃错药了
    还有一本哈姆雷特~~~~~~~~~~~~
    还有,他们信基督教的送给我一本英文版的bible,给我讲了半天
    结果被我放在正对门的地方,当关公神龛用,驱邪~~~~~~~
    哦呵呵呵呵呵呵呵呵~~~~~~~~~~
    还有,我那天居然混进了york的Ministery
    英革兰主教的地皮啊~~~,跟着去做evensong,好几百年的历史啊
    关键是那里是英国基督教的中心,如同第一次去中国开会就在中南海一样
    里面建筑之灰宏,之高大,彩绘玻璃之精致,之陈旧,
    小孩子圣歌一唱,就觉得很有感觉,如同魔兽3人族任务作完那个动画的感觉
    那里给大家看的圣经都不一样,人家has要写成hath,does要写成doth,
    座位也一看就是几百年的,都要垮掉了的木头座位
    哦呵呵呵呵呵呵呵呵~~~~~~~~~~
     
     
    September 12

    A Sonnet

     
    St George! I am coming!
     

    St George, to thy land, I am coming

    Through the shadow& the Great Ocean

    To the land of Dream& the harbor of studying

    By the Sail of Ideal& the Mast of Ambition

     

    O! Storm! Hurricane! & Shadow!

    See! Can thou see! At the edge of horizon

    Moving towards! Shouting! Making wall-like billow

    Pushing the Mast down, Torch the Sail broken

     

    “Just comes! The wave of fate& the Shadow of doom!

    Thy power can NEVER make me afraid!”

    Facing up the wind, Crying, the will boom

    Defeat the Storm, proudly, the sailing runs ahead.

     

    Running after the dusk, a voyage to challenge fate

    For honor! Spirit! Dream! & the name of DUKE

    August 22

    O!Dish!My Dish!!

    O!Dish!My Dish!!
     
     
    O! Dish! My Dish! Standing ahead& Yelling
         The task hath been done     The peak infront
    Mountains are conquerred
         By the Name of the Wild& the bottle of Military 
      Here, O! Ye!! Ye!!!
         At the top of this mountain
         You just rest then choose another, Running
         Disappeared in the Mist& Cloud!
     
     
    O! Dish! My Dish! Under the name of BLIZZARD
         the Witch is summonning& the Paliadin is shining
    The battle-cruiser operational in the Sky while Zergs over the wild
         at the Self-Catering Net Room beside the GuangHua Tower
      Finished! Wonderful! Exciting!!!
         My Dish rashing back to classroom immediately
         where the NJU's Gates was openning
         doomed to retuen through the Mist& Cloud!
     
     
    The GuangHua Tower is still standing
         where students are still wandering
    The Self-Catering Net Room is still working
         where the Diablo is still shouting
     But, O! Dish! My Dish!!!
         Through the windows of the plane
         flying across Mountains& the Wild
         Hiden in the Mist& Cloud!
     
     
     
    August 13

    啊哈哈哈哈哈哈哈哈哈,移动硬盘,爽得一P阿~~~`

    啊哈哈哈哈哈哈哈哈哈,移动硬盘,爽得一P阿~~~`
    哦呵呵呵呵呵呵呵呵呵
    我可以去文献2楼狂下软件了
    ~~~~~~~~~
    fancysky上的软件,
    什么SAS,SPSS,SPLUS,MATLAB......
    哦呵呵呵呵呵,一样都不能少哈~~~~~~
    还有无数的电影
    60个G阿~~~~~~~
    宫崎俊的全要了
    什么埃及王子阿,什么的经典
    ~~~~~~~~~~
    哦呵呵呵呵呵呵呵呵
     
    更爽的是坦克一样的做工~~~~~~
    爽阿~~~~就跟坦克装甲一样~~~~~
    哦呵呵呵呵呵呵呵呵呵呵
     
     
    August 05

    哦呵呵呵呵呵呵呵呵,今天和DISH第一次视频了哈

    啊哈哈哈哈哈哈哈哈,DISH终于买摄像头了
    今天第一次视频了哈~~~~~
    哦呵呵呵呵呵呵
    就是网速慢了点,很卡哈~~~
     
    今天上课被雨淋爽了
    郁闷啊~~~~~~
     
    July 20

    罗德瑞中让人感动得两首诗

    转载哈
    原文来自罗德瑞
    感动阿~~~~
     
    three rings for the Elven-king under the sky
    seven for the dwarf-lords in their halls of stone
    nine for mortal men doomed to die
    one for the dark lord on his dark throne
    in the land of mordor where the shadows lie
    one ring to rule them all, one ring to find them
    one ring to bring them all, and in the darkness bind them
    in the land of mordor where the shadows lie
     
    Home is behind
    The world ahead 
    And there are many paths to tread
    Through shadow
    To the edge of night 
    Until the stars are all alight
    Mist and shadow
    Cloud and shade
    All shall fade
    All shall fade