Sunday, 09.08.2020, 21:17
Welcome Guest | RSS
Site menu
Login form
Section categories
Search
Calendar
«  June 2011  »
SuMoTuWeThFrSa
   1234
567891011
12131415161718
19202122232425
2627282930
Entries archive
Our poll
Rate my site
Total of answers: 6
Statistics

Total online: 1
Guests: 1
Users: 0
Main » 2011 » June » 21 » Letter upper, lower case check by function
19:16
Letter upper, lower case check by function
#include <iostream>

using namespace std;

int stugum(char c) {

   c&=(1<<5);
   if(c==0)
   return 0;
   else
   return 1;
 }

int main(){
char a;
cin>>a;
cout<<stugum(a);
return 0;

}
Category: C++ programs | Views: 441 | Added by: H_Imirzyan | Tags: function, upper, letter, case, check, lower | Rating: 0.0/0
Total comments: 0
Name *:
Email *:
Code *: