Calendar
« June 2011 » |
Su |
Mo |
Tu |
We |
Th |
Fr |
Sa |
| | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
Statistics
Total online: 1 Guests: 1 Users: 0
|
Main » 2011 » June » 21
#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;
}
|
#include <iostream>
using namespace std;
int main() { char a; cin>>a; int b=a&(1<<5); if(b==0) cout<<"upper case"; else cout<<"lower case";cin.get(); return 0; }
| |
|