i got a problem wtih my encryption...
would you be kind to help me with this...i'm new to this c++ programing...
i have this expansion encryption method..where you will add a char in between the original text..example >>>>. josh..this could be >>>> jxoxsxhx...like that...
my program goes like this
main()
{
char string[10],count;
int x,y;
cout<<"ENTER TEXT:";
cin>>string;
count=strlen(st ring);
for(x=0;x<count ;x++)
cout<<string[x]<<string[2];
//if i'll enter "JOSH" the output would be "JSOSSSHS"
//if i'll enter "jupi" the output would be "jpupppip"
getche();
}
//what i need to do is to store the output in another array.
example. array[] will be equal to the cout in the program above which is
string[x] and string[2]...>>>>> array[x]="string[x]" and "string[2]"
how will i do that?.....
how will i do it?
please help everyone..
would you be kind to help me with this...i'm new to this c++ programing...
i have this expansion encryption method..where you will add a char in between the original text..example >>>>. josh..this could be >>>> jxoxsxhx...like that...
my program goes like this
main()
{
char string[10],count;
int x,y;
cout<<"ENTER TEXT:";
cin>>string;
count=strlen(st ring);
for(x=0;x<count ;x++)
cout<<string[x]<<string[2];
//if i'll enter "JOSH" the output would be "JSOSSSHS"
//if i'll enter "jupi" the output would be "jpupppip"
getche();
}
//what i need to do is to store the output in another array.
example. array[] will be equal to the cout in the program above which is
string[x] and string[2]...>>>>> array[x]="string[x]" and "string[2]"
how will i do that?.....
how will i do it?
please help everyone..
Comment