骚年,呵呵,写完了,还是把框架贴上来吧代码500行,就不贴了!!!有兴趣看的朋友,留邮箱,我发~
#include <stdioh>
#include <stdlibh>
#include <timeh>
//lnitialize some datas;
//for player
int whoGuess;
int guess[6];
int scroe;
//for computer
int c_whoGuess;
int c_guess[6];
int c_scroe;
//array for right number
int num[6];
//other information
int limits;
int howMany;
int guessTimes;
int repeat;
int wrong=0;
int correct;
int wrong_place;
char str[]={"the Number can repeat","the Number cann't repeat"};
//check there is any equal number return "-1" is not
int CheckTheSame(int list,int len)
{
}
//this function for commonsetting
void CommonSetting()
{
}
//playersetting
void PlayerSetting()
{
}
//player guess it
void PlayGuess()
{
}
//computer setting
void ComputerSetting()
{
}
//compuer guess it
void ComputerGuess()
{
}
//check the guess
void CheckGuess(int pnum,int pguess)
{
}
//function Main
void main()
{
CommonSetting();
if (1==whoGuess)//1 for computer
{
int let_com_guess=0;
PlayerSetting(); //player set the quesstion
//start to guess
for(int i=0;i<guessTimes;i++)
{
printf("please input \"1\", then the computer will guess for %d times\n",i+1);
scanf("%d",&let_com_guess);
if (1==let_com_guess&&guessTimes>0)
{
ComputerGuess();
CheckGuess(num,c_guess);
if (correct==howMany)//if all right,break
{
printf("All right!!!\n");
c_scroe=guessTimes-i;//computer scroe
if (0==i)
{
c_scroe+=1;
}
break;
}
if (correct!=0)
{
c_scroe++;
printf("%d correct, %d wrongplace\n",correct,wrong_place);
}
if (correct==0)
{
printf("%d correct, %d wrongplace\n",correct,wrong_place);
}
}
correct=0;
wrong_place=0;
}
scroe=guessTimes-c_scroe;//player scroe
if (scroe<0)
{
scroe=0;
}
printf("player scroe is %d, computer scroe is %d\n",scroe,c_scroe);
}
if (2==whoGuess)//2 for player
{
ComputerSetting();//computer set the quesstion
printf("computer has given the numbers\n");
for(int i=0;i<guessTimes;i++)
{
printf("please input %d number to start guess for %d times\n",howMany,i+1);
PlayGuess();
CheckGuess(num,guess);
if (correct==howMany)//if all right,break
{
printf("All right!!!\n");
scroe=guessTimes-i;//computer scroe
if (0==i)
{
scroe+=1;
}
break;
}
if (correct!=0)
{
scroe++;
printf("%d correct, %d wrongplace\n",correct,wrong_place);
}
if (correct==0)
{
printf("%d correct, %d wrongplace\n",correct,wrong_place);
}
correct=0;
wrong_place=0;
}
c_scroe=guessTimes-scroe;//player scroe
if (c_scroe<0)
{
c_scroe=0;
}
printf("player scroe is %d, computer scroe is %d\n",scroe,c_scroe);
}
system("pause");
}
可以从以下几方面考虑:
1、看看费率是否相同;
2、看看定额子目是否相同;
3、看看调整系数是否相同;
4、看看工程量是否相同;
5、看看材料价格调整是否相同;
6、看看两个模板的计费程序是否相同;
其实没有什么本质区别,都是计价软件,定额库,清单都是一样的。不过广联达全国推广的很好的。广联达图形容易上手。套价神机妙算不错。但是你用广联达多了,就熟悉他的程序了。两者没有太大的区别!
以上就是关于求大神帮忙做一个标准c的程序 如果完成追分哦 题目中等难度 游戏的名字叫珠玑妙算 不要着急做 先联系我全部的内容,包括:求大神帮忙做一个标准c的程序 如果完成追分哦 题目中等难度 游戏的名字叫珠玑妙算 不要着急做 先联系我、我用神机妙算软件做出的价钱和别人对不上,是哪里没有调、广联达软件与神机妙算软件区别有哪些等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)