Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Collections.Specialized;
- using System.Text;
- using System.Threading.Tasks;
- using System.Net;
- using System.Threading;
- namespace IMJunior
- {
- class Program
- {
- static void Main(string[] args)
- {
- Dialog[] dialog = new Dialog[3]
- {
- new Dialog("Who are you", new string[] { "Footballer", "Nord", "Thief"}),
- new Dialog("What would you like?", new string[] { "Win my rocrastination", "Have bitcoin", "By GTX1080(fucking miner!!!)"}),
- new Dialog("You can help for orden", new string[] { "Yep. I'm Ronaldo", "I'm a gay", "I'm a geek"})
- };
- Console.WriteLine("Please fill this anket");
- //А дальше чёт хз чё делать, тут явно нужно вкорячить цикл. Но чёт я устал или тупой.
- int[] Array = { 10, 10, 52, 23 };
- foreach(int element in Array)
- {
- Console.WriteLine(element);
- }
- foreach (Dialog d in dialog)
- {
- Console.WriteLine(d.Qustion);
- for (int i = 0; i < d.Answer.Length; i++)
- {
- Console.WriteLine("[{0}]>{1}", i, d.Answer[i]);
- }
- Console.ReadLine();
- d.isDoorOpen = true;
- }
- }
- }
- class Dialog
- {
- public bool isDoorOpen;
- public string Qustion;
- public string[] Answer;
- public Dialog(string Qustion, string[] Answer)
- {
- this.Qustion = Qustion;
- this.Answer = Answer;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement