close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
Want free Kindle ebooks?

Sign up to receive the best freebie Kindle ebook deals in your email every day.
From our sponsors
C++ 程式問題 do while
Sep 27th 2013, 18:35

cout
char next;
do{
cin.get(next);
cout
}while((!isdigit(next)) && (next!= '\n'));
cout

C++語法如上

輸入如下:
I'll see you at 10:30 AM

想請問為何結果會是 I'll see you at 1<END OF OUTPUT??

終止條件while裡應該是 (不是數字 and 不是Enter)

1是數字怎麼會中止呢??

請問我的錯誤點在哪,有點想不通,謝謝

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 poohkkkks 的頭像
    poohkkkks

    2016情人節禮物排行榜 送女生情人節禮物排行榜 情人節禮物 送男生 男生情人節禮物排行榜 情人節禮物推薦 情人節禮物送男生什麼好

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