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
    全站熱搜
    創作者介紹
    創作者 yahauiuyt 的頭像
    yahauiuyt

    奇皇后線上看16, 奇皇后線上看15, 奇皇后線上看18, 奇皇后線上看11, 奇皇后線上看第13集, 奇皇后線上看tv, 奇皇后線上看19, 奇皇后線上看第7集

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