the user enters a sentence "thankgiving is on thursday"
pwords = "thanksgiving"
pwords = "is"
pwords = "on"
pwords = "thursday"
how do i pass the array into my function
String Encrypt(string pwords) ??maybe
and how do i break eachword down into individaul characters so i can do operations on them
so i want it to take thanksgiving and go though
and get the t then the h than the a and so on.......
also can i do mathmatical operations on the letters
say i take the varible that stores t and mod 10 is that going to deal with the ascii representation and will it be legal??
hopefully you can understand what i am trying to get at
thanks in advance
heres what i am worken with
even though it is probbly way out of wack
String Encrypt(string pwords)
Number1 = letter % 10;
Number1 = (Number1 + 7) % 10;
Number2 = letter / 10;
Number2 = (Number2 + 7) % 10;
EncryptedLetter = static_cast<char>(Number1) + static_cast<char>(Number2);