我尝试了一些方法(类继承、公开),但我似乎无法让 Spamsus();
工作。
脚本如下:
Class1.cs
using System;
using Spamogus;
namespace Try_not_to_sus_challenge
{
class Program : Spam
{
static void Main(string[] args)
{
if(Console.ReadLine() == "sus")
{
Spamsus();
}
else
{
Console.WriteLine("CONGRADULATIONS");
Console.WriteLine("");
Console.WriteLine("you are not sus");
}
Console.ReadLine();
}
}
}
Spamogus Definition.cs:
using System;
using System.Collections.Generic;
using System.Text;
namespace Spamogus
{
public class Spam
{
public void Spamsus()
{
for (int a = 0; a < 100; a++)
{
for (int b = 0; b < 100; b++)
{
for (int c = 0; c < 10; c++)
{
Console.Write("AMONGUS");
}
}
}
}
}
}