#include <iostream>
#include "proj1.h"
using namespace std;
//Deciphers a message. cip[] is a char array containing a Cipher message
//as a null-term.
void Decipher(char Cip[], char key);
{
char intCip[];
char intMessage[];
char cipher[];
int intKey = key - 'A';
for( int i = 0; i < strlen(Cip); i++)
{
if(Cip[i] >= 'A' && Cip[i] <= 'Z')
{
intCip[i] = key - Cip[i];
}
}
for( int i = 0; i < strlen(Cip); i++)
{
Cip[i] = (intCip[i] + (intKey % 26));
}
}
char SolveCipher(const char Cip[], char dec[]);
{
return 0;
}
int main()
{
Decipher (ciper[0], 'R');
return 0;
}
I get this error message when I try to make the .exe
g++ -Wall proj1.cpp -o program
proj1.cpp:8: error: expected unqualified-id before ‘{’ token
make: *** [program] Error 1
What does this mean? I can't see what I would need before the '{' since that starts the function definition.