Note: (Restricted functionality due to obvious reasons!)
Minimal Code ( Raw-View ) :
#include<iostream.h>
#include<conio.h>
void main(){
int i2[5] , idx;
char i[5];
for( idx = 0; idx < 5; idx++){
i[idx] = getch() ;
cout<<i[idx];
}
for( idx = 0; idx < 5; idx++){
cout<<idx<<" : "<< i[idx];
}
}