0

Broken from here.

I Have quite the same probem . But I'm block at this point :

#include<iostream>
using std::cout;
using std::endl;
unsignedint uiStringSize = 0;
/* prototype fct encrypt */
void encrypt( char * );
/* prototype fct decrypt */
void decrypt( char * );
char i=0 ;
int main()
{
// string to encrypt
char string[] = "this is a secret";
uiStringSize= sizeof( string ); int
 
cout << "original string of character : " << string << endl; 
encrypt( string );
cout << "encrypt string is : " << string << endl;
decrypt( string );
cout << "decrypt string is : " << string << endl;
return 0;
} 
 
void encrypt( char e[] )
{
/* Here I have to write the function that will encrypt each letter +1 */
for ( i=0; i= uiStringSize; i++) // not sure, miss something
} 
void decrypt( char *ePtr )
{
/* decrypt fct */
for ( i=0; i= uiStringSize; i++) // ......
 
}
2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Salem
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.