vc++中的错误,请大哥大姐指教,谢!
来源:互联网 发布:非负矩阵分解算法原理 编辑:程序博客网 时间:2024/06/10 06:10
这是我在其它网站看到的例子,#include<stdio.h>
#include<stdlib.h>
#include<time.h>
void guitu(void);
main()
{
srand(time(NULL));
guitu();
return 0;
}
void guitu()
{
int i,j,count=0,cou=0,number;
char printfun[71];
while(1) {
for(j=0;j<70;j++)
printfun[j]=' ';
printfun[71]='';
number=rand()%10+1;
printf("n");
if(1<=number && number<=5) {
count=count+3;
if(count>70) count=0;
printfun[count]='G';
}
if(6<=number && number<=7) {
count=count-6;
if(count<0) count=0;
printfun[count]='G';
}
if(8<=number && number<=10) {
count=count+1;
if(count>70) count=0;
printfun[count]='G';
}
if(1<=number && number<=2) {
cou=cou+0;
printfun[cou]='T';
}
if(3<=number && number<=4) {
cou=cou+9;
if(cou>70) cou=0;
printfun[cou]='T';
}
if(number==5) {
cou=cou-12;
if(cou<0) cou=0;
printfun[cou]='T';
}
if(6<=number && number<=8) {
cou=cou+1;
if(cou>70) cou=0;
printfun[cou]='T';
}
if(9<=number && number<=10) {
cou=cou-2;
if(cou<0) cou=0;
printfun[cou]='T';
}
if(count==cou)
printfun[count]='P';
printf("%s",printfun);
printf("nn");
if(count==70) {
printf("gui win!!!nn");
break;
}
if(cou==70) {
printf("tu win!!!nn");
break;
}
sleep(1);
}
}
这是C的例子,在VC++中出现了错误如下:
fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
这是什么错误,请指点,谢!
- vc++中的错误,请大哥大姐指教,谢!
- 请各位大哥大姐指点
- 我是新来的,请大哥大姐帮助,谢谢!
- 大哥大姐帮帮忙!!!
- 找错误!!请高手指教!
- 菜鸟求助啊!~~请各位会java的大哥大姐来帮帮小弟!
- 各位大哥大姐大婶大叔,有完整版的CSS教程的请往下看~!
- 请各位大哥大姐帮帮小弟,小弟这里有点迷糊啊!谢谢了啊!
- 各位大哥大姐,谢谢留意
- 救命呀大哥大姐们
- VC问题,高手请指教,谢谢`
- 小第是个学生!有一问题不明!请各位大哥多多指教!谢谢
- zh-cn(英文编译)那位大哥大姐帮帮忙~!小弟跪谢~!(送分啦!!!!!)
- 那位大哥大姐可以告诉我自学JAVA看什么书不,谢了!
- 我用VC编了地个MFC程序,可不知如何调试,请各们大哥大姐帮帮小弟
- 大哥,大姐!小弟跪求解毒方法!!
- 请指教
- 请指教
- 英语•程序设计及其他
- 英语学习方法论
- The advices of exploit the oversea market
- 一见钟情fall in love at first sight
- 公司 简介
- vc++中的错误,请大哥大姐指教,谢!
- 朱德庸—什么事都在发生
- 新世纪器乐-竖琴-A Tribute不死传说
- 海地...几个短篇
- I love & Love me
- [转载]Blog trackback 功能 (原作:无何有之乡)
- 七年之痒(Love motto_1)
- 致共享软件同仁--转贴
- 逆流而上&顺流而下