count

  1. N

    Resolved How can I calculate the number of ships' of battleship games in the array?

    Need to calculate the number of ships. Ships are presented as a “battleship” game.“1” represents a ship, “0” represents water. C# namespace Ships { class Program { static int[,] ships = new int[10, 10] { { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, }, { 0, 1...
  2. P

    Count

    Hello, my program is counting every second the object, I need to count it just when it is instantiate. Thank you.
Back
Top Bottom