Please, can anyone tell me what is wrong with my simple encrypter?
Thank you!Code:#include <iostream.h> #include <fstream.h> int main() { char string[256], note2[256]; int b; cout<<"Write your note:"<<endl; cin.getline(string, 256, '\n'); cout<<"loading..."<<endl; for(int a=0;a<256;a++) { b=(int)string[a]; note2[a]=(char)(b+15); } ofstream a_file("note.txt"); a_file<<note2; a_file.close(); cout<<"Your note is now encrypted into the file: 'note.txt'"<<endl; cin.get(); return 0; }
-KaibaFan321