Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MyForm(void)
- {
- InitializeComponent();
- current_question_number = 0;
- number_of_questions = 8;
- arrQuestions = gcnew array<Question^>(number_of_questions);
- user_answers = gcnew array<String^>(number_of_questions);
- for (int i = 0; i < number_of_questions; i++)
- {
- //myArr->SetValue(System::Convert::ToString(i), i);
- String^ value;
- String^ rightAnsw;
- questionType type;
- array<String^ > ^tmp = gcnew array<String^ >(4);
- //заполнить поля вопроса i
- tmp = addQuestion(i, tmp);
- Question^ q = gcnew Question(value, type, rightAnsw, tmp);
- arrQuestions->SetValue(q, i);
- }
- // визуализация первого вопроса
- Question^ currentQuestion = arrQuestions->GetValue(0);
- makeVisualization(currentQuestion);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement