按时完成。要求在项目开始时打开一张图片(最好在控制台中),该图片将在闪存驱动器上。
using System;
namespace Задание_1
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Лаб. №3 Задание. №1.20. Тахаев Усам Руссланович");
try {
do {
Console.Write ("x=");
float x = float.Parse (Console.ReadLine ());
Console.Write ("y=");
float y = float.Parse (Console.ReadLine ());
if (y == 23 || x == 0 || y==-x && x<0)
Console.WriteLine ("На границе");
else if (y < 23 && x < 0 && y - x > 0)
Console.WriteLine ("Внутри");
else
Console.WriteLine ("вне");
Console.Write("Для выхода нажмите Escape. Для продолжения любую другую клавищу\n");
}
while (Console.ReadKey().Key != ConsoleKey.Escape);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
}

SO的同志建议使用Process: