小编The*_*rew的帖子

C#应用程序有很多错误

我正在玩我正在编写的C#应用​​程序中遇到的一些错误.我一直得到的错误是:

  • 加密和解密调用必须具有返回类型
  • Console.WriteLine用作方法
  • static void encrypt(string [] args)期望的类,委托,接口或结构
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string pw ="", hash =""; //Declare an intialise variables

            if (args.Length < 4) // Test to see if correct number of arguments have been passed
            {
                Console.WriteLine("Please use command line arguments in this format: encrypt -e (or -d) password-to-encrypt-with input-file output-file");
                Environment.Exit(0);
            }

            if (args[1].Length < 10 || args[1].Length > 40) // Test to see if the password is between 10 …
Run Code Online (Sandbox Code Playgroud)

c#

0
推荐指数
1
解决办法
102
查看次数

标签 统计

c# ×1