Click here to Skip to main content
15,917,731 members
Home / Discussions / C#
   

C#

 
AnswerRe: (XNA) Calculate FPS [modified] Please? Pin
User 665823-Feb-08 1:07
User 665823-Feb-08 1:07 
GeneralBlock windows applications from dotnet webbrowser Pin
ric9422-Feb-08 9:13
ric9422-Feb-08 9:13 
AnswerRe: Block windows applications from dotnet webbrowser Pin
Spacix One22-Feb-08 10:09
Spacix One22-Feb-08 10:09 
GeneralRe: Block windows applications from dotnet webbrowser Pin
ric9422-Feb-08 10:14
ric9422-Feb-08 10:14 
GeneralHelp me with a program. Pin
Alex50122-Feb-08 8:30
Alex50122-Feb-08 8:30 
GeneralRe: Help me with a program. Pin
Skippums22-Feb-08 9:50
Skippums22-Feb-08 9:50 
GeneralRe: Help me with a program. Pin
Christian Graus22-Feb-08 10:24
protectorChristian Graus22-Feb-08 10:24 
GeneralRe: Help me with a program. Pin
Spacix One22-Feb-08 10:35
Spacix One22-Feb-08 10:35 
Why do you have 500 "Console.WriteLine" ?? Well not quite 500 but jeze, you still have quite a few!

Use a single string,

You seem to be in a class/new to programming so I'll help you with these:
    1) No need to call write line 100 time unless you need to
    2) The char '\n' is bad to use in .NET unlike some other other language's the new line char '\n' doesn't get converted by the compiler to the system's correct new line format. So there is a class called "Environment" which contains a "NewLine" property (the correct way to do a '\n' in .NET) which will decode to the correct new line string.

Console.WriteLine("Welcome to The Quiz Program!{0}"
    + " You can be quizzed on any of the following operators:{0}"
    + "\t1) %\t(modulus, or 'remainder'){0}"
    + "\t2) *\t(multiplication){0}"
    + "\t3) /\t(integer division){0}"
    + "\t4) /%\t(integer division & modulus in a combined challenge!)"
    + "{0}{0}Choice (1,2,3,or 4):", Environment.NewLine);



-Spacix
All your skynet questions[^] belong to solved

GeneralProblem with ToolStripTextBox Pin
stancrm22-Feb-08 5:15
stancrm22-Feb-08 5:15 
GeneralRe: Problem with ToolStripTextBox Pin
Judah Gabriel Himango22-Feb-08 6:55
sponsorJudah Gabriel Himango22-Feb-08 6:55 
GeneralRe: Problem with ToolStripTextBox Pin
stancrm24-Feb-08 20:14
stancrm24-Feb-08 20:14 
GeneralRe: Problem with ToolStripTextBox Pin
Judah Gabriel Himango25-Feb-08 11:19
sponsorJudah Gabriel Himango25-Feb-08 11:19 
GeneralRe: Problem with ToolStripTextBox Pin
stancrm25-Feb-08 19:59
stancrm25-Feb-08 19:59 
QuestionHow to dock a form ? Pin
Aravinthan22-Feb-08 4:16
Aravinthan22-Feb-08 4:16 
GeneralRe: How to dock a form ? Pin
Dr. Emmett Brown22-Feb-08 4:55
Dr. Emmett Brown22-Feb-08 4:55 
GeneralRe: How to dock a form ? Pin
Aravinthan22-Feb-08 17:59
Aravinthan22-Feb-08 17:59 
GeneralRe: How to dock a form ? Pin
Dr. Emmett Brown22-Feb-08 5:06
Dr. Emmett Brown22-Feb-08 5:06 
GeneralRe: How to dock a form ? Pin
Judah Gabriel Himango22-Feb-08 6:54
sponsorJudah Gabriel Himango22-Feb-08 6:54 
GeneralMake a .dll file Pin
Strategic_Thinker22-Feb-08 3:58
Strategic_Thinker22-Feb-08 3:58 
GeneralRe: Make a .dll file Pin
Ravi Bhavnani22-Feb-08 4:08
professionalRavi Bhavnani22-Feb-08 4:08 
GeneralRe: Make a .dll file Pin
Strategic_Thinker22-Feb-08 4:21
Strategic_Thinker22-Feb-08 4:21 
Generalknow if logged in account is an administrator Pin
pranu_1322-Feb-08 3:45
pranu_1322-Feb-08 3:45 
QuestionPosting Software to the Web Pin
danielhasdibs22-Feb-08 3:09
danielhasdibs22-Feb-08 3:09 
GeneralRe: Posting Software to the Web Pin
Ravi Bhavnani22-Feb-08 4:07
professionalRavi Bhavnani22-Feb-08 4:07 
QuestionRe: Posting Software to the Web Pin
danielhasdibs22-Feb-08 4:40
danielhasdibs22-Feb-08 4:40 

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.