Put specific line of txt in array

后端 未结 2 870
小鲜肉
小鲜肉 2021-01-24 13:37

I am making a \"Who wants to be a millionare\" game for my c# class, and I have 15 txts with 3 questions/answers each. example:

Whats the capital of Brasil? || Rio

2条回答
  •  生来不讨喜
    2021-01-24 14:06

    I don't think we're technically supposed to answer homework questions, so I shall point you in the right direction: Google. Try inputting 'C# multidimensional array' and looking for the link to the MSDN library. There are a fair number of samples that can be adapted to your purpose.

    Note that the commenter above is right; most often in programming you won't find decimals used for item division and rather commas. I know European-style numbers use commas to denote what decimals do in the US and vice-versa, but to my knowledge most programming languages were designed with American English in mind. This means that 2.25 means 2 and one quarter, where 2,25 indicates a list of 2 and 25.

提交回复
热议问题