TC的问题?
我在tc里输入下面的程序怎么有问题呀?
不知道怎么用tc,所以请教大家?
请大家不赐教!!
我输入的代码如下:
#include "stdio.h"
#include "conio.h"
#include "graphics.h"
void DDA_line(x0 , y0 , x1 , y1 , color)
{
int x ;
float y , k , deltx , delty ;
deltx = x1 - x0 ;
delty = y1 - y0 ;
k = delty / deltx ;
y = y0 ;
for(x=x0 ; x <= x1 ; x++)
{
putpuxel(x , int(y+0.5) , color) ;
y = y + k ;
}
}
main()
{
int a0 = 5 , a1 = 10 , b0 = 3 , b1 = 8 ;
int col = 1 ;
DDA_line(a0 , b0 , a1 , b1 , col) ;
// printf("Hello, world\n");
getch();
}
不知道怎么用tc,所以请教大家?
请大家不赐教!!
我输入的代码如下:
#include "stdio.h"
#include "conio.h"
#include "graphics.h"
void DDA_line(x0 , y0 , x1 , y1 , color)
{
int x ;
float y , k , deltx , delty ;
deltx = x1 - x0 ;
delty = y1 - y0 ;
k = delty / deltx ;
y = y0 ;
for(x=x0 ; x <= x1 ; x++)
{
putpuxel(x , int(y+0.5) , color) ;
y = y + k ;
}
}
main()
{
int a0 = 5 , a1 = 10 , b0 = 3 , b1 = 8 ;
int col = 1 ;
DDA_line(a0 , b0 , a1 , b1 , col) ;
// printf("Hello, world\n");
getch();
}
...全文
相关推荐
TC开发环境.pptx
TC开发环境.pptx
TC问题和解决方案汇总 -V01-20111118[1].pdf
TC问题和解决方案汇总 -V01-20111118[1].pdf
Building and Running Spring Applications on SpringSource tc Server
Table of Contents 1. Building/Running Spring Applications on SpringSource tc Server?. 2. Widespread Adoption of Spring and Tomcat. 3. What is tc Server?. 4. Spring and tc Server Share Common Philosophy. 5. Combining Spring Framework and tc Server. 6. Conclusion.
TC2转换TC3解决方案.docx
将TwinCAT2环境下的程序转换成TwinCAT3环境程序的详细过程
TC35-AT指令表
TC35-AT指令表全集全集全集全集全集全集全集全集全集全集全集全集全集全集全集全集


