I am still new to C++, I've tried drawing a horizontal line but i keep messing up and instead end up drawing a vertical line. could you kindly direct mev on how to go about it.

Just set the y-coordinate to 0. And make x-coordinate whatever you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.