Program to encrypt/decrypt files

Hello!

I have the a program with me.. but there are too many errors. Listing some of them:
encrypt.cpp(12) : error C2065: 'cout' : undeclared identifier
encrypt.cpp(13) : error C2065: 'cout' : undeclared identifier
encrypt.cpp(13) : error C2001: newline in constant
encrypt.cpp(14) : error C2143: syntax error : missing ';' before 'constant'
encrypt.cpp(14) : error C2146: syntax error : missing ';' before identifier 'To'

encrypt.cpp(14) : error C2065: 'To' : undeclared identifier
encrypt.cpp(14) : error C2146: syntax error : missing ';' before identifier 'Enc
rypt'
encrypt.cpp(14) : error C2065: 'Encrypt' : undeclared identifier
encrypt.cpp(14) : error C2146: syntax error : missing ';' before identifier 'The
'
encrypt.cpp(14) : error C2146: syntax error : missing ';' before identifier 'The
'
encrypt.cpp(14) : error C2001: newline in constant
encrypt.cpp(14) : error C2065: 'The' : undeclared identifier
encrypt.cpp(14) : error C2146: syntax error : missing ';' before identifier 'Fil
e'
encrypt.cpp(14) : error C2065: 'File' : undeclared identifier
encrypt.cpp(14) : error C2143: syntax error : missing ';' before 'string'
encrypt.cpp(15) : error C2146: syntax error : missing ';' before identifier 'cou
t'
encrypt.cpp(15) : error C2065: 'cout' : undeclared identifier
encrypt.cpp(15) : error C2001: newline in constant
encrypt.cpp(16) : error C2143: syntax error : missing ';' before 'constant'
encrypt.cpp(16) : error C2146: syntax error : missing ';' before identifier 'To'

encrypt.cpp(16) : error C2065: 'To' : undeclared identifier
encrypt.cpp(16) : error C2146: syntax error : missing ';' before identifier 'Dec
rypt'
encrypt.cpp(16) : error C2065: 'Decrypt' : undeclared identifier
encrypt.cpp(16) : error C2146: syntax error : missing ';' before identifier 'The
'
encrypt.cpp(16) : error C2001: newline in constant
encrypt.cpp(16) : error C2065: 'The' : undeclared identifier
encrypt.cpp(16) : error C2146: syntax error : missing ';' before identifier 'Fil
e'
encrypt.cpp(16) : error C2065: 'File' : undeclared identifier
encrypt.cpp(16) : error C2143: syntax error : missing ';' before 'string'
encrypt.cpp(17) : error C2146: syntax error : missing ';' before identifier 'cou
t'
encrypt.cpp(17) : error C2065: 'cout' : undeclared identifier
encrypt.cpp(17) : error C2001: newline in constant
encrypt.cpp(18) : error C2146: syntax error : missing ';' before identifier 'Opt
ion'
encrypt.cpp(18) : error C2001: newline in constant
encrypt.cpp(19) : error C2146: syntax error : missing ';' before identifier 'cin
'
encrypt.cpp(19) : error C2065: 'cin' : undeclared identifier
encrypt.cpp(24) : error C2065: 'cout' : undeclared identifier
encrypt.cpp(27) : error C2065: 'ifstream' : undeclared identifier
encrypt.cpp(27) : error C2146: syntax error : missing ';' before identifier 'fin
'
encrypt.cpp(27) : error C2653: 'ios' : is not a class or namespace name
encrypt.cpp(27) : error C2065: 'binary' : undeclared identifier
encrypt.cpp(27) : error C3861: 'fin': identifier not found
encrypt.cpp(28) : error C2065: 'fin' : undeclared identifier
encrypt.cpp(30) : error C2065: 'cout' : undeclared identifier
encrypt.cpp(30) : error C2001: newline in constant
encrypt.cpp(31) : error C2146: syntax error : missing ';' before identifier 'Err
or'
encrypt.cpp(31) : error C2065: 'Error' : undeclared identifier
encrypt.cpp(31) : error C2146: syntax error : missing ';' before identifier 'In'

encrypt.cpp(31) : error C2065: 'In' : undeclared identifier
encrypt.cpp(31) : error C2146: syntax error : missing ';' before identifier 'Ope
ninig'
encrypt.cpp(31) : error C2065: 'Openinig' : undeclared identifier
encrypt.cpp(31) : error C2146: syntax error : missing ';' before identifier 'Of'

encrypt.cpp(31) : error C2065: 'Of' : undeclared identifier
encrypt.cpp(31) : error C2146: syntax error : missing ';' before identifier 'A'
encrypt.cpp(31) : error C2065: 'A' : undeclared identifier
encrypt.cpp(31) : error C2146: syntax error : missing ';' before identifier 'Fil
e'
encrypt.cpp(31) : error C2001: newline in constant
encrypt.cpp(32) : error C2143: syntax error : missing ';' before 'return'
encrypt.cpp(35) : error C2065: 'cout' : undeclared identifier
encrypt.cpp(35) : error C2001: newline in constant
encrypt.cpp(36) : error C2146: syntax error : missing ';' before identifier 'Ent
er'



Are these errors because I am missing some header files..??? Please help ASAP!
Last edited on
You will need to post your source code. There's no point in anyone attempting to tell you what's wrong without seeing the code.
Topic archived. No new replies allowed.