Originally Posted by
Adak
Now you're talking! Hope you mean it.
Oh believe me I mean it ... it's just i don't have the time and money to take this course next semester ... I know you don't believe a word I'm sayin but that's okay because you don't live in my country and are not in my shoes to understand what i'm saying ...
********
I re wrote it and I'm trying to put it like below ... but it doesn't work when i run it it types the alphabet correctly but i want it to type the wrong alphabet like the first source!
Code:
#include <iostream.h>
#include <conio.h>
#include <string.h>
int i , x , s;
char ch;
struct sentence{
char name[50];
char keyCode[] = "abcdefghijklmnopqrstuvwxyz";
char input[255] = "";
};
struct sentence read(){
struct sentence s;
return(s);
};
void print(struct sentence s){
for ( i = 0 ; i <= 255; i++ ){
ch = getch();
if ( ch == 13 )
break;
cout << keyCode[ch - 'a' ];
x = strlen ( input );
input[x+1] = input [x];
input[x] = ch; }
};
void main(){
cin >>s;
cout <<"my name";
clrscr();
};