Profilo di 耀庭灵峰夜话BlogElenchiAmici Strumenti Guida
14 novembre

qherlyt

自杀了,忘记看什么时候注册的,该快三年了吧
 
qherlyt (tingting@zerg) 共上站 2445 次,发表过 5380 篇文章
[金牛] 上次在 [Mon Nov 14 13:38:38 2005] 从 [qherlyt] 到本站一游。
信箱∶[  ],经验值∶[11150](飘渺游侠) 表现值∶[45](很好) 生命力∶[29]。
个人说明档如下∶
常半夜醒来                                       http://10.214.2.90/qherlyt/
    寂寞的幻想
        若推开了窗              大海不明白
            能看见大海              弄潮的人啊
被遗忘时候                              夏天过去了
    它是否存在                              就不会再回来
        他选择离开              像沙滩脚印
            也否定了爱              眷恋还清晰
从那一天起                              等时间掩埋
    我发现自己                  始终不明白
        某部分死了                  爱能被取代
            不想有未来                  困惑的我不敢再伸手去爱
                                灰蓝的心情
                                    想念着夏天
                                        那秋天的海
                                  tingting道貌岸然忍气吞声无思想无追求的坏学长

最想做的一些事

好像很久以前被点名过
1、如果可以,诚恳地向被我伤害过的人道歉。
2、原谅有意或者无意中伤害过我的人。
3、踏实学习、工作。
11 novembre

"stream" to cstdio

写了这个东西玩,当不想用scanf又不得不用的时候,就派上用场了。。。

#include <cstdio>
#include <string>
#include <iostream>
using namespace std;

#define __STRING_IO
const char __END_OF_LINE = '\n';
#ifdef __STRING_IO
 char __tmpInputStr[10000];
#endif
class __Cin {
private: bool isEnd;
public:
 __Cin() { isEnd = false; };
    __Cin& operator>> (int &a) { isEnd = (scanf("%d", &a) == EOF); return *this; }
    __Cin& operator>> (char &c) { isEnd = (scanf("%c", &c) == EOF); return *this;}
 __Cin& operator>> (char* &s) { isEnd = (scanf("%s", s) == EOF); return *this;}
 __Cin& operator>> (long long &a) { isEnd = (scanf("%lld", &a) == EOF); return *this;}
#ifdef __STRING_IO
 __Cin& operator>> (string &s) { if (scanf("%s", __tmpInputStr) == EOF) isEnd = true; else s.assign(__tmpInputStr); return *this;}
#endif
 operator bool() const { return !isEnd; };
} __cin;
struct __Cout {
 __Cout& operator<< (const int &a) { printf("%d", a); return *this; }
 __Cout& operator<< (const char &c) { printf("%c", c); return *this; }
 __Cout& operator<< (const char* &s) { printf("%s", s); return *this; }
 __Cout& operator<< (const long long &a) { printf("%lld", a); return *this; }
#ifdef __STRING_IO
 __Cout& operator<< (const string &s) { printf("%s", s.c_str()); return *this; }
#endif
} __cout;

#define cin (__cin)
#define cout (__cout)
#define endl (__END_OF_LINE)

int main() {
    int a;   
    while (cin >> a) {
     cout << a << endl;
    }
}