
展开全部
表示一个字符在控制台屏幕上的坐标。
COORD是Windows API中定义的一种结构,表示一个字符在控制台屏幕上的坐标。其定义为:
typedef struct _COORD {
SHORT X; // horizontal coordinate
SHORT Y; // vertical coordinate
} COORD;
扩展资料
coord_ 系列函数可以改变xy轴的位置,默认使用 coord_cartesian(),可以改变成如下几种
coord_cartesian 默认情况,指定参数则控制图形特定区域放大显示。
coord_fixed 图形伸缩变换
coord_flip 横纵坐标位置转换
coord_polar 弯曲横纵坐标(画饼图可以用)
coord_map 将地图变成球状展示(这个我们以后讲到地图再专门说)
coord_trans 转化数据
coord系列函数只影响图形展示,不影响内部数据的值。即使用原数据作图,再对图形进行变动。
参考资料来源:百度百科-coord
展开全部
typedef struct _COORD { // coord.
SHORT X; // horizontal coordinate
SHORT Y; // vertical coordinate
} COORD;
WINDOWS API中定义的一个结构
表示一个字符在控制台屏幕上的坐标,坐上角(0,0)
SHORT X; // horizontal coordinate
SHORT Y; // vertical coordinate
} COORD;
WINDOWS API中定义的一个结构
表示一个字符在控制台屏幕上的坐标,坐上角(0,0)
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2011-04-01
展开全部
没办法使用的
VC gotoxy
#include <stdio.h>
#include <conio.h>
#include <windows.h>
void gotoxy(HANDLE hOut, int x, int y);
void gotoxy(HANDLE hOut, int x, int y)
{
COORD pos = ;
SetConsoleCursorPosition(hOut, pos);
}
int main(void)
{
int x,y;
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
for(y=1;y<=6;y++)
{
gotoxy(hOut, 35, 12);
for(x=1;x<7;x++)
printf("*");
}
CloseHandle(hOut);
}
另外,团IDC网上有许多产品团购,便宜有口碑
VC gotoxy
#include <stdio.h>
#include <conio.h>
#include <windows.h>
void gotoxy(HANDLE hOut, int x, int y);
void gotoxy(HANDLE hOut, int x, int y)
{
COORD pos = ;
SetConsoleCursorPosition(hOut, pos);
}
int main(void)
{
int x,y;
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
for(y=1;y<=6;y++)
{
gotoxy(hOut, 35, 12);
for(x=1;x<7;x++)
printf("*");
}
CloseHandle(hOut);
}
另外,团IDC网上有许多产品团购,便宜有口碑
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询