Jump to content

DanStan

Member
  • Posts

    8
  • Joined

  • Last visited

Reputation Activity

  1. Like
    DanStan got a reaction from Devin92 in What are some things that you hate when building or troublshooting a computer? (I'm currently very bored)   
    Doing cable management(never completely happy with it) ,finishing a "silent" build and then getting coil whine.
  2. Like
    DanStan got a reaction from mrchow19910319 in What are some things that you hate when building or troublshooting a computer? (I'm currently very bored)   
    Doing cable management(never completely happy with it) ,finishing a "silent" build and then getting coil whine.
  3. Funny
    DanStan got a reaction from QFA350 in What are some things that you hate when building or troublshooting a computer? (I'm currently very bored)   
    Doing cable management(never completely happy with it) ,finishing a "silent" build and then getting coil whine.
  4. Agree
    DanStan reacted to Mr_KoKa in C# beginner looking for help   
    Two problems, you're missing closing bracket of if(Choice == "/"). If this code compiles for you, the possible scenario is you have the closing bracket at the end, and printing of the answer falls into that specific if, in other words, answer is produced only for division operation. You want to add close bracket before line:
    Console.WriteLine("the operation has been apllied");
     
    Second thing is, you re using WriteLine with Ans as argument, but you don't specify where to put the Argument in format. I think you through it will just print all arguments one by one, first the string "The Answer is = " and then the Ans variable, but it doesn't work this way, first argument of WriteLine is format where you can include placeholders which other arguments will fall in later on, it would look like this:
     
    Console.WriteLine("First argument {0}, second argument {1}", 100, 200) // Produces: "First argument 100, second argument 200" Console.WriteLine("Second argument {1}, first argument {0}", 100, 200) // Produces: "Second argument 200, first argument 100" This is simple example and there is more, you can read about it here: https://msdn.microsoft.com/pl-pl/library/586y06yf(v=vs.110).aspx
×