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; }
| |
|