TC的
#include <stdioh>
#include <alloch>
#include <ctypeh>
#include <dosh>
#include <dirh>
#include <ioh>
#include <graphicsh>
#define GETADR(n,str) (str ) calloc (n,sizeof(str))
#define W16 16
#define C16 32
unsigned char bit[8]={0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};
FILE fi;
char dot,str[20];
main(int argc,char argv[])
{
int i,j,nn,xc,yc,MaxX,MaxY,menul[1000];
int graphdriver=DETECT,graphmode;
if(argc!=2){
puts("LT16<N4>");
exit(0);
}
dot=GETADR(C16,char);
fnmerge(str,"","",argv[1],"N4");
if((fi=fopen(str,"r"))==NULL){
puts("Can't open DATA");
exit(0);
}
fscanf(fi,"%d",&nn);
if(nn<=0||nn>1000)
exit(0);
for (i=0;i<nn;i++)
fscanf(fi,"%d",&menul[i]);
fclose(fi);
if((fi=fopen("CLIB16DOT","rb"))==NULL){
puts("Can't open CLIB16DOT");
exit(0);
}
initgraph(&graphdriver,&graphmode,"");
MaxX=getmaxx();
MaxY=getmaxy();
xc=0;
yc=20;
for(j=0;j<nn;j++){
i=readlibdot(menul[j]);
putchar16(xc,yc);
xc+=20;
if(xc>MaxX-20){
yc+=20;
xc=0;
if(yc>MaxY-20){
getch();
clearviewport();
yc=0;
}
}
}
getch();
closegraph();
}
readlibdot(int j)
{
int i0,j1,j2;
long order,k1;
j1=j/100;
j2=j-j1100;
if(j1>=9)
j1=j1-6;
k1=94j1+j2-95;
order=C16k1;
fseek(fi,order,SEEK_SET);
i0=fread(dot,C16,1,fi);
return(i0);
}
putchar16(int bx,int by)
{
int i,j,kk,k,x1,y1;
unsigned char marker;
kk=0;
y1=by;
for(i=0;i<16;i++,y1++){
for(j=0;j<2;j++){
x1=bx+j8;
marker=(dot+kk);
kk++;
for(k=0;k<8;k++){
if(!(marker&bit[k]))
continue;
putpixel(x1+k,y1,YELLOW);
}
}
}
return;
}
[A]Always waiting for you
总是在这里等着你
Be with you
和你在一起
[C] Calls you just to say Hi
打电话给你就是想说声 嗨
[D] Dear,Good night
每晚温柔的对你说晚安
[E]Expectthe whole of you
期待你的全部
[F]Forever stand by you
永远在你身边
[G]Give you what you need
给你一切你需要的
[H]Hope you enjoy your life
愿你享受你的生活
I love you
我爱你
[J]You jump,I jump
[K]Kiss you when you wake
在你醒来时偷偷吻你
[L]Learn to know you
学习懂你
[m] Make more surprise in your life
给你与众不同的生活
[N]Never make you cry
永远不让你哭
[O]Offer support
支持你
[P]Put you in my heart
把你放在我心底
[Q] Quiet your fears
停止你的害怕
[r] Run with you
和你一起去未来
[S] Sing a song for you
为你唱一首属于你的歌
[T]To be yours
我是你的
Understand you
懂你
[V] Value myself onyou
以你为荣
[W]Wake you up everyday
每天叫醒赖床的你
[X] XL love
特大号的爱
[Y] You are always so addictive
你一直是如此地令我着迷
[Z] Zeal for you
对你狂热
欢迎分享,转载请注明来源:表白网
评论列表(0条)