| 
				 // 界面取得参数 
void GetChoice(int &choice , char szFileName[100] ,char szKey[50]) 
{    
    int cho; 
  
start: 
    system("cls"); 
    cout<<endl<<endl<<endl; 
    cout<<" ***********************************************************"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *                IDEA算法测试程序                 *"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *  请选择以下测试选项:                    *"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *           1:  明文加密              *"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *           2:  密文解密              *"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *           3:  明文加密并生成独立加密文件    *"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *           4:  密文解密并生成独立明文文件    *"<<endl; 
    cout<<" *                                 *"<<endl; 
    cout<<" *           0:  退出程序              *"<<endl; 
    cout<<"     请选择一个功能: "; 
  
  
      cin>>cho;  choice = cho; 
  
    if(choice == 0)  return ; 
  
    if(choice == 1 || choice == 3)   {     cout<<"   \t \t输入待加密的明文文件:"; } 
    else if(choice == 2 ||choice == 4)    {      cout<<"    \t\t输入待解密的密文文件:";} 
  
    else  
    { 
        cout<<"\t \t输入不合法, 请输入合法选项"<<endl;  
        system("pause"); 
        cin.clear(); 
        goto  start; 
    } 			
				 |