close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
The Best Way to Manage your Money.

Start using Mint today to set a budget, track your goals and do more with your money.
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
    全站熱搜
    創作者介紹
    創作者 rrhhs 的頭像
    rrhhs

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

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