U E D R , A S I H C RSS

비밀키/박능규

~cpp 

#include <fstream>  
#include <iostream> 
using namespace std;  
  
int main()  
{  
        ifstream fin("source.txt");
		ofstream fout("output.txt");
	//	ofstream fout2("result.txt");
  
        char a;  
        int key; 
        cout << "key 를 입력하세요(단,숫자) : "; 
        cin >> key; 
 
        while(fin>>a) 
        { 
   
		   fout << (char)((int)a+key);
		   cout << (char)((int)a+key);
        }
		

        cout << "암호와 완료..해석불능..\n"; 
        return 0;  
}  

아...야메....
반대로.실패함...야메는 야메일뿐..
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:37
Processing time 0.0117 sec