Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
enc5
#include <iostream>
using namespace std;
int main (int argc, char * const argv[])
{
char string[]="PikkJstvh . Gigjmiq{ . 972? . l`kohvk . rqxb";
int key[]={+8,+4,-1};
int count=0;
for(int i=0;i<strlen(string);i++)
{
if(string[i]!=(char)32)
{
string[i]+=key[count];
count++;
if(count==sizeof(key)/4) count=0;
}
}
cout << string;
return 0;
}```
After i compile it and run it it just gives me jibberish can anyone help me. (this Isn't my code i got it from the code bank and put in the string and key from encryption 5) And i am very new to C++.
thanx :D
So i definitely got this one, but my answer isn't what the challenge is looking for. It's ok… Not panicking, but… I would like to know if can send someone what I have and if they can tell me how to derive the answer the challenge box is looking for.
EDIT: Wow. As soon as I posted this I looked at it again and figured it out. Pretty cool challenge, except for the speelling mistakes, ya?:D