#include <iostream>
#include <string.h>
using namespace std;
int main()
{
char clear[200];
char cipher[200];
int x,i;
int opt;
cout<<"Encrypt (1) or Decrypt (2):";
cin>>opt;
if(opt==1) //my problem is its not giving me option to enter string
{
cout<<" Enter a string:";
cin.getline(clear,sizeof(clear));
x = strlen(clear);
for(i=0;i<=x-1;i++)
{
cipher = clear+3;
}
cipher[x] = '\0';
cout<<" Encrypted:" << cipher << endl;
Hey guys I'm having trouble with Encrypt and Decrypt option when i enter my option it is not leaving me enter my string, im new to programming and cant see were the problem is.i have also a decrypted part to this code also. but just posted encrypted part as my problem is at the beginning of the program thanks in advanced guys