int main()
{
    cout << "Hello world!" << endl;
    cin.get();
    return 0;
}
用cin.get()而不是press()来结束程序。
因为press()是使用多层的缓冲来结束、而cin.get()只使用2层缓冲(没记错的话)。

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kk匡 的頭像
    kk匡

    kk匡的日記&學習筆記

    kk匡 發表在 痞客邦 留言(0) 人氣()