Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void ReadCuboid()
- {
- // Read the cuboid size
- string cuboidSize = Console.ReadLine();
- string[] sizes = cuboidSize.Split();
- width = int.Parse(sizes[0]);
- height = int.Parse(sizes[1]);
- depth = int.Parse(sizes[2]);
- cuboid = new char[width, height, depth];
- // Read the cuboid data
- for (int h = 0; h < height; h++)
- {
- string line = Console.ReadLine();
- string[] letters = line.Split();
- for (int d = 0; d < depth; d++)
- {
- for (int w = 0; w < width; w++)
- {
- cuboid[w, h, d] = letters[d][w];
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement