Joke Collection Website - Bulletin headlines - C how to draw coordinates
C how to draw coordinates
Because you don't have a score, I won't write a program, so I'll just tell you the direction.
If it's a painting in C language, the header file for drawing straight lines is contained in #include"graphics.h "
Now, let's define four variables X1, Y1, X2 and Y2;
I now assume that your a b arrays are equal and the length is known as length
, so I use the for loop
for(int i=; i< length-1; i++)
{
x1=a[i]; y1=b[i];
x2=a[i+1]; y2=b[i+1];
line(x1,y1,x2,y2);
}
Finish drawing
I hope the above will help you.
- Previous article:Speeches on hygiene
- Next article:What are the admission scores for each batch of the 2011 College Entrance Examination in Hebei Province?
- Related articles
- What are the souvenirs of the class reunion?
- Engineering Department Slogan
- Auxiliary police policy for retired soldiers
- What fire extinguishers are commonly used in computer rooms? What kinds of fire extinguishers are there?
- Do you know Lanzhou Musical Instrument Store and Caesar Castle Piano?
- When will Jiaozuo Oriental Jin Dian Headquarters New Town hand over the house?
- Tea factory slogan
- Summary of outstanding activities to help the disabled
- Development slogan of the world's top 500 enterprises
- Shaoxing Asian Games torch relay route