Click here to Skip to main content
15,929,795 members
Home / Discussions / C#
   

C#

 
QuestionStackOverflow on OnComponentChanged Pin
sanicra13-May-07 13:21
sanicra13-May-07 13:21 
AnswerRe: StackOverflow on OnComponentChanged Pin
Christian Graus13-May-07 14:06
protectorChristian Graus13-May-07 14:06 
GeneralRe: StackOverflow on OnComponentChanged Pin
sanicra13-May-07 14:31
sanicra13-May-07 14:31 
AnswerRe: StackOverflow on OnComponentChanged Pin
Luc Pattyn13-May-07 15:34
sitebuilderLuc Pattyn13-May-07 15:34 
GeneralRe: StackOverflow on OnComponentChanged Pin
sanicra13-May-07 15:46
sanicra13-May-07 15:46 
GeneralRe: StackOverflow on OnComponentChanged Pin
Luc Pattyn13-May-07 22:56
sitebuilderLuc Pattyn13-May-07 22:56 
GeneralRe: StackOverflow on OnComponentChanged Pin
sanicra13-May-07 23:18
sanicra13-May-07 23:18 
QuestionNeed Help With Console app (if CurAns > NoAns) Pin
emcp0613-May-07 9:35
emcp0613-May-07 9:35 
hi im new to c# but i do have some experience with other languages

here the problem ive wrote a PSP Game that will allow users to make their own quizes (in pretty much plain text) but i would like to make an app to make it even easier (Console or whatever) this is what i have so far

using System;<br />
<br />
using System.Collections.Generic;<br />
using System.Text;<br />
<br />
namespace ConsoleApplication1<br />
{<br />
    class Program<br />
    {<br />
<br />
        static void Main(string[] args)<br />
        {<br />
<br />
            Console.Write("How Many Questions Do You Want In This Quiz : ");<br />
            string NOQuestions = Console.ReadLine();<br />
<br />
            Console.Write("Enter A Question : ");<br />
            string Question = Console.ReadLine();<br />
<br />
            Console.Write("How Many Answers Do You Want For This Question : ");<br />
            string NOAnswers = Console.ReadLine();<br />
<br />
            Console.Write("Enter An Answer : ");<br />
            string Answer1 = Console.ReadLine();<br />
            <br />
<br />
            Console.Write("Enter A Score : ");<br />
            string Score1 = Console.ReadLine();<br />
<br />
            Console.Write("Enter An Answer Or type No to exit the answer section : ");<br />
            string Answer2 = Console.ReadLine();<br />
            <br />
<br />
            Console.Write("Enter A Score : ");<br />
            string Score2 = Console.ReadLine();<br />
<br />
            Console.Write("Enter An Answer Or type No to exit the answer section : ");<br />
            string Answer3 = Console.ReadLine();<br />
<br />
           <br />
            if (Answer3 == "No")<br />
            {<br />
                Console.Write("Enter A Time : ");<br />
                string Time = Console.ReadLine();<br />
                Console.Write(Time + " ");<br />
                Console.Write(Question + " ");<br />
                Console.Write(Answer1 + " ");<br />
                Console.Write(Answer2 + " ");<br />
                Console.Write(Score1 + " ");<br />
                Console.Write(Score2 + " ");<br />
            }<br />
            else<br />
            {<br />
                Console.Write("Enter A Score : ");<br />
                string Score3 = Console.ReadLine();<br />
            }<br />
                <br />
                <br />
            }<br />
<br />
        }<br />
<br />
<br />
    }<br />
<br />
<br />


ok now what i need to do is to make it do either of these 2 things

1.when it asks you how many answer/question you want
i want so when the correct amount of answers has been made for it to move on to the timer
and when it done the timer create a new question and when it get to the correct amount of questions make it end

2.You type No to make it stop asking you for question or answers

here the template of a quiz i made for my app

Quiz = {<br />
{ "Question", { "Answer1", "Answer2", "Answer3"}, { Score1, Score2, Score3}, Time}<br />
}<br />
<br />
Creator = "Your Name"<br />


the brackets and speech marks must remain the same and each line is one question all the question except the last one need to have a , after it

SO COULD YOU POINT ME IN THE DIRECTION THAT I NEED TO GO THANKS
AnswerRe: Need Help With Console app (if CurAns > NoAns) Pin
Christian Graus13-May-07 11:50
protectorChristian Graus13-May-07 11:50 
QuestionQuestion about XML XPath Pin
Latheesan13-May-07 8:58
Latheesan13-May-07 8:58 
AnswerRe: Question about XML XPath Pin
Latheesan13-May-07 9:46
Latheesan13-May-07 9:46 
Questionrichtextbox newbie question Pin
RIPOUX13-May-07 7:48
RIPOUX13-May-07 7:48 
AnswerRe: richtextbox newbie question Pin
Latheesan13-May-07 9:03
Latheesan13-May-07 9:03 
GeneralRe: richtextbox newbie question Pin
RIPOUX13-May-07 9:30
RIPOUX13-May-07 9:30 
Questionsimple override and virtual question Pin
donovan.solms13-May-07 7:41
donovan.solms13-May-07 7:41 
AnswerRe: simple override and virtual question Pin
Luc Pattyn13-May-07 11:08
sitebuilderLuc Pattyn13-May-07 11:08 
GeneralRe: simple override and virtual question Pin
donovan.solms13-May-07 13:24
donovan.solms13-May-07 13:24 
QuestionDelegates and Threading Question Pin
C.Sharp.Mage13-May-07 7:29
C.Sharp.Mage13-May-07 7:29 
AnswerRe: Delegates and Threading Question Pin
Christian Graus13-May-07 12:03
protectorChristian Graus13-May-07 12:03 
GeneralRe: Delegates and Threading Question Pin
C.Sharp.Mage13-May-07 13:29
C.Sharp.Mage13-May-07 13:29 
QuestionSQLServer Express Edition Pin
Agyeman13-May-07 7:28
Agyeman13-May-07 7:28 
AnswerRe: SQLServer Express Edition Pin
RIPOUX13-May-07 7:55
RIPOUX13-May-07 7:55 
GeneralRe: SQLServer Express Edition Pin
Agyeman13-May-07 9:21
Agyeman13-May-07 9:21 
GeneralRe: SQLServer Express Edition Pin
Agyeman13-May-07 9:24
Agyeman13-May-07 9:24 
AnswerRe: SQLServer Express Edition Pin
Giorgi Dalakishvili13-May-07 7:55
mentorGiorgi Dalakishvili13-May-07 7:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.