lundi 27 juillet 2015

What should be the structure to handle multiple questions and answers?

I want to develop an application which will handles multiple questions and answers.

Basic idea of application is

  1. User get list of questions.
  2. When user click on any question, user will see answer of that question on screen.

Main problem is

  1. Answer may contain images for explanation.
  2. How should i manage this data such a way that it can be easy to search answer of question.

I am thinking that i will store all answers in one file in tagged format like

$QUE1_START

//answer details

$QUE1_END

For question 1 it will find #QUE1_START tag in file and read file up to #QUE1_END tag.

Am i going in right direction ?

I want some good suggestions.

Aucun commentaire:

Enregistrer un commentaire