CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  C/C++ >  C语言

光标定位

楼主zzw820626(偶要分,偶要星星)2005-05-15 21:04:13 在 C/C++ / C语言 提问

在字符显示方式下,怎样定位光标的位置?  
  使用什么样的函数? 问题点数:20、回复次数:4Top

1 楼ltc_mouse(野地芳菲)回复于 2005-05-15 21:10:44 得分 5

Syntax  
   
  #include   <conio.h>  
  void   gotoxy(int   x,   int   y);  
   
  Description  
   
  Positions   cursor   in   text   window.  
   
  gotoxy   moves   the   cursor   to   the   given   position   in   the   current   text   window.   If   the   coordinates   are   in   any   way   invalid   the   call   to   gotoxy   is   ignored.   An   example   of   this   is   a   call   to   gotoxy(40,30)   when   (35,25)   is   the   bottom   right   position   in   the   window.   Neither   argument   to   gotoxy   can   be   zero.  
   
  Note: Do   not   use   this   function   for   Win32s   or   Win32   GUI   applications.Top

2 楼ltc_mouse(野地芳菲)回复于 2005-05-15 21:12:05 得分 5

gotoxy定位光标输出位置  
  wherex   和   wherey   函数取得光标所在位置Top

3 楼tfq(大梦谁先觉)回复于 2005-05-17 22:48:21 得分 5

UpTop

4 楼cao12m(★草上飞★)回复于 2005-05-17 23:21:33 得分 5

 
  gotoxy(int   x,int   y)/*定位光标*/  
  Top

相关问题

  • swing光标定位
  • 关于光标定位
  • 请教光标定位
  • 光标定位问题。
  • 光标定位偏移
  • 光标定位问题
  • 光标的自动定位????????????????
  • 光标定位问题
  • RichTextBox的光标定位问题
  • 如何定位Textarea的光标位置?

关键词

  • win32
  • 函数
  • 光标
  • gotoxy
  • 定位
  • 位置
  • cursor
  • position
  • call
  • text window

得分解答快速导航

  • 帖主:zzw820626
  • ltc_mouse
  • ltc_mouse
  • tfq
  • cao12m

相关链接

  • C/C++ Blog
  • C/C++类图书
  • C/C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo