标题:求助!!高手帮我看看错误
取消只看楼主
wt1558
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2009-9-25
结帖率:0
 问题点数:0 回复次数:2 
求助!!高手帮我看看错误
# include <stdio.h>

int main()
{
    int stepNo,x,y,fx,fy,stepx,stepy;
   printf("please enter your initial location x and y:");
   scanf(" %d%d",&x,&y);
   printf("Please enter your final location stepfx and stepfy:");
   scanf(" %d%d",&fx,&fy);


   while(x<=fx&&y<=fy)
   {
       if(stepNo%3==0)
       stepx+1,stepy+1;
     printf("x=%d  y=%d\n",x,y);

        x=x+1;
        y=y+1;

   }

getch();
return 0;
}
题目的意思是说在输出之后显示每三步变化一次步长
搜索更多相关主题的帖子: include initial please 
2009-09-25 22:19
wt1558
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2009-9-25
得分:0 
The similar step only can be used for 3 consecutive movements. After that the movement of the robot must used other steps. The movement of the Keep all new coordinates for a step from origin to destination.  这个是题目
2009-09-25 22:22
wt1558
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2009-9-25
得分:0 
哦,明白一些了,谢谢楼上了!
2009-09-25 22:53



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-286953-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.445585 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved