// base64.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main(int argc,char * argv[])
{
if (argc != 3)//处理输入指令,输入有误,返回提示
{//QIUT for wrong input
cout << "FilePath E/D" << endl;
exit(EXIT_FAILURE);
}
string path(argv[1]),tag(argv[2]);
struct b24{
unsigned int a:6;
unsigned int b:6;
unsigned int c:6;
};
ifstream fin(path,ios_base::in | ios_base::binary);
ofstream fout;
if(tag.find('e')!=string::npos && tag.find('d')==string::npos)//解密操作
{
}
else if(tag.find('d')!=string::npos && tag.find('e')==string::npos)//加密操作
{
}
else
{//QIUT for wrong input
cout << "FilePath e/d" << endl;
exit(EXIT_FAILURE);
}
}