close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
50% off Print Subscription of USA Today

Get the news delivered to your doorstep. Lock in the savings and receive USA Today for just $0.75 a day.
From our sponsors
C++判斷字元是否為英文字母的函式要怎麼寫?
Dec 28th 2013, 13:38

#include <iostream>
#include <cstdlib>
#include <conio.h>
#include <ctype.h>
using namespace std;
int main(int argc, char** argv) {
char ch;
bool ad;
cout<<("請輸入一個字元,判斷是否為英文字")<<endl;
ch=getche();
ad=isalpha(ch);
cout<<endl;
if(ad!=0)
cout<<"此字元為英文字母"<<endl;
else
cout<<"這個不是英文字母"<<endl;
system("pause");
return 0;
}

參考資料: 我自己~

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.

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) 人氣()