Click here to Skip to main content
15,916,019 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
is there any way to sketch a line between two vertices in c++? I mean, for example, between the (0,0) and (4,3) in 2D plane with characters. (without using c library functions)
Posted
Updated 22-Oct-15 12:08pm
v2

You might use, for instance, the "Bresenham's line algorithm"[^].
 
Share this answer
 
First of all, this is a wrong place for this question.
Quick Answer:
Yes it is always possible to do in console mode what is done in graphic mode. Simply the resolution do not compare between the 2.

You said "points" in title and "vertices" in question, is it 2 different things ?
No using C library functions is easy since you are using C++ library. What do you mean by this request, be precise. because the function that output chars to screen is in the language library.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900