Yurttas/PL/OOL/Cplusplus/cpp/02/05/01/04/00/01/char 03.cpp
Jump to navigation
Jump to search
1/*
2 Copyright(C) 1998
3 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for EDUCATIONAL purposes
7 and without fee is hereby granted provided that this
8 copyright notice appears in all copies.
9
10 date : January 1, 1998.
11 author : Salih Yurttas.
12
13 char_03.cpp
14*/
15
16
17#include <cctype>
18
19#include <iostream>
20
21using namespace std;
22
23int main(int argc, char* argv[]) {
24
25 char a = 0;
26 for(int i=0; i<128; ++a, ++i)
27 if(isupper(i))
28 cout << i << ". " << a << endl;
29
30 cout << endl;
31
32 a = 0;
33 for(int i=0; i<128; ++a, ++i)
34 if(islower(i))
35 cout << i << ". " << a << endl;
36
37}