Hey guys. I'm making an encoding tool for messaging but the problem is, I don't know how to change the letters in the inputed message and I'm too lazy to look it up.... I just started it like 2 min ago and here's my code so far:
basically it generates a random number, changes the message depending on the number (for now increases each letter like it was a number), and gives the person the encrypted message and the secret number which changes it back.Code:#include <iostream.h>
#include <stdlib.h>
int main()
{
int wtd;
int en;
int randnm;
char messagete['500'];
sao:
cout<<"1- Decode 2- Encode"<<endl;
cin>>wtd;
if(wtd == 2) {
cout<<"What message would you like to encode? Max: 500 letters + spaces!"<<endl;
cin>>messagete;
randnm = rand();
messagete = messagete + randnm;
cout<<"The encoded message is: ||| " << messagete << " ||| and the secret number is " << randnm <<endl;
} else if(wtd == 1) {
}
goto sao;
system("PAUSE");
return 0;
}