Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Zadacha_1
- {
- class QuestionaryForNewAdeptsItem
- {
- public string Question;
- public string[] AnswerVariation;
- }
- class Door
- {
- public bool IsOpen = false;
- }
- class Program
- {
- static void Main(string[] args)
- {
- Door[] doors = new Door[] { new Door(), new Door(), new Door() };
- Console.WriteLine("Совершенно очевидно, что мы не берём в наш орден кого попало. Поэтому заполни вот эту анкету, " +
- "и мы примем решение, брать тебя или нет");
- QuestionaryForNewAdeptsItem firstQuest = new QuestionaryForNewAdeptsItem();
- firstQuest.Question = "Кто вы?";
- firstQuest.AnswerVariation = new string[] { "Человек", "Брандлмуха", "Кхаджит" };
- QuestionaryForNewAdeptsItem secondQuest = new QuestionaryForNewAdeptsItem();
- secondQuest.Question = "Что вы хотите?";
- secondQuest.AnswerVariation = new string[] { "Победить Аразота", "Стать богатым", "Найти боевых товарищей" };
- QuestionaryForNewAdeptsItem thirdQuest = new QuestionaryForNewAdeptsItem();
- thirdQuest.Question = "Чем вы можете помочь ордену?";
- thirdQuest.AnswerVariation = new string[] { "Я отличный воин", "Я добротный маг", "Я могу работать в кузнице" };
- QuestionaryForNewAdeptsItem[] questionary = new QuestionaryForNewAdeptsItem[] { firstQuest, secondQuest, thirdQuest };
- for (int i = 0; i < questionary.Length; i++)
- {
- var q = questionary[i];
- Console.WriteLine(q.Question);
- for (int j = 0; j < q.AnswerVariation.Length; j++)
- {
- Console.WriteLine("[{0}]>{1}", j, q.AnswerVariation[j]);
- }
- Console.ReadLine();
- doors[i].IsOpen = true;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment