Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Need direction for solving a problem c#

$
0
0
Hello! I have a program, that should print out a string at any given coordinates with foreground and background colors on the screen. My problem I have is, Im not quite sure on how I should make the coordinates and print out the string. Should I be using a constructor that takes in the arguments for the coordinate position and the string and then create an instance of my class that takes these parameters? ive come so far:

class ColoredText
    {
        public int x, y; // koordinaterna
        public string hello;
        ConsoleColor Color;

        public ColoredText(int x, int y, string Position)
        {
            
        }
    }



What im looking for now is somebody to GUIDE me to the right direction, Im not looking for help in any other ways then that. Thanks.

Viewing all articles
Browse latest Browse all 51036