Hi for some reason when words are entered there is a extra decrypt value ?
also how would i make scanf exept whitespaces so that a user could enter a sentence ?
int main(){
//what word was entered
char entered[100];
char encryped[100];
char decryped[100];
char *ptr;
puts("enter a word to encrypt");
//fgets(encrypted,100,stdin);
//getline(cin,);
//cin>>entered;
scanf("%s",entered);
//create new char array based on size of word entered
ptr = new char[strlen(entered)];