console app

  1. Programmable Physics

    How to know if 2 ASCII created lines in a command prompt has the same length?

    Is there a way to know if these 2 lines have the same size in pixels aka length? What code should I use to determine if they have the same length or not? Just because these perpendicular lines created with ASCII, they differ in length size according to whether they were put next to one another...
  2. Daniel_04

    Question Moving point

    I've been thinking about this task for 5 days and I can't solve it, can you help me? Create a point class with the fields x and y field-static counter. Create a ToTheRight method that increments x by 1 on each call. Create a ToTheLeft method that reduces x by 1 on each call. Create 3...
  3. Paradoxz1

    Resolved Create list of numbers to be displayed as string

    Hey guys, I have been looking around for a while now but I can't find anything to help me with my issue. I'm trying to create a list that has weeks of the year in it 1-52 weeks in 1 year and then display the weeks in a formated string. So that every 3 weeks are displayed (Week 1 Week 4 Week 7...
  4. Paradoxz1

    Resolved Do while loop until Enter key

    Hello! I'm new to programming in C# and I'm trying an exercise where I have to write a console application that loops until the enter key is pressed. My issue is that I don't know how to do a "Do While" loop to keep looping until the Enter key has been pressed since I need to press enter key to...
  5. Polski Arrow

    Resolved Test code with loops not working.

    Hi, I wrote that code below and built and compiled it to console program. That's my test code for strategy game in console. There I have to choose area by typing X and Y coordinates. Areas are int variables which can represent empty area (0) ad area with number of pawn (1-25). How should it...
  6. JazzEngineer

    Question How do I call method without it's constructor?

    Attached please find a DrawPoker console game. I can't figure out how to call the CreateDeck or Shuffle methods without calling the Deck constructor. The problem is that calling the Deck constructor generates a new Deck object. This new Deck object is NOT referred to by the rest of the code. My...
Back
Top Bottom