I need help so that this program decrypts. Can someone take a look and run it I have the following errors.

1>------ Build started: Project: Decryption, Configuration: Debug Win32 ------
1>Compiling...
1>Decryption.cpp
1>e:\prog100\simplycpp\tutorial11\exercises\decryption\decryption\decryption\decryption.cpp(18) : error C2059: syntax error : '}'
1>e:\prog100\simplycpp\tutorial11\exercises\decryption\decryption\decryption\decryption.cpp(31) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion)
1>        c:\program files\microsoft visual studio 9.0\vc\include\xstring(914): could be 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const std::basic_string<_Elem,_Traits,_Ax> &)'
1>        with
1>        [
1>            _Elem=char,
1>            _Traits=std::char_traits<char>,
1>            _Ax=std::allocator<char>
1>        ]
1>        c:\program files\microsoft visual studio 9.0\vc\include\xstring(919): or       'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const _Elem *)'
1>        with
1>        [
1>            _Elem=char,
1>            _Traits=std::char_traits<char>,
1>            _Ax=std::allocator<char>
1>        ]
1>        c:\program files\microsoft visual studio 9.0\vc\include\xstring(924): or       'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(_Elem)'
1>        with
1>        [
1>            _Elem=char,
1>            _Traits=std::char_traits<char>,
1>            _Ax=std::allocator<char>
1>        ]
1>        while trying to match the argument list '(std::string, void)'
1>e:\prog100\simplycpp\tutorial11\exercises\decryption\decryption\decryption\decryption.cpp(44) : error C2143: syntax error : missing ';' before '}'
1>e:\prog100\simplycpp\tutorial11\exercises\decryption\decryption\decryption\decryption.cpp(44) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\prog100\simplycpp\tutorial11\exercises\decryption\decryption\decryption\decryption.cpp(44) : error C2143: syntax error : missing ';' before '}'
1>e:\prog100\simplycpp\tutorial11\exercises\decryption\decryption\decryption\decryption.cpp(44) : error C2059: syntax error : '}'
1>Build log was saved at "file://e:\Prog100\SimplyCpp\Tutorial11\Exercises\Decryption\Decryption\Decryption\Debug\BuildLog.htm"
1>Decryption - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

and here is my code:

// This application decrypts encrypted data one character at a time.


#include <iostream> // required to perform C++ stream I/O
#include <string>  // required for parameterized stream manipulators


using namespace std; // for accessing C++ Standard Library members


//string
string message; //will hold the encoded message


//function prototype
void decryptLetter(char encryptedLetter){
char decrypt = /* encryptLetter plus 32 */
message = // message plus decrypt
//done
}


// function main begins program execution
int main()
{
int input; // user input


//prompt for user input
cout <<"\nEnter encrypted letter ( 0-94; -1 to exit): ";
cin >> input;


while ( input > 0 && input < 94)
{
message = decryptLetter (input);


}


cout << "\n"; // insert newline for readability
return 0; // indicate that program ended successfully


} // end function main


//define decryptLetterFunction
decryptLetter (int)



}

Please put your code in CODE tags.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.