gotoxy() 函数在 Visual Studio 中不起作用 [英] gotoxy() function is not working in Visual Studio

查看:56
本文介绍了gotoxy() 函数在 Visual Studio 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 Visual Studio 2010 中使用 gotoxy() 函数.有什么替代方法吗?

I'm not able to use gotoxy() function in Visual Studio 2010. Is there any alternative for that?

推荐答案

您是在谈论命令行应用程序还是 Windows 应用程序?你必须记住 VC2008 是一个 windows 特定的开发环境,所以如果你是在 linux/unix 或更旧的 dos 系统上学习编程,那么事情就不一样了.

Are you talking about command line applications or windows applications? You must remember that VC2008 is a windows specific development environment, so if you were learning programming on a linux/unix or an older dos system then things will not be the same.

我所知道的在 Windows 下改变控制台应用程序中光标位置的唯一方法是使用 Windows 函数 SetConsoleCursorPositon.

The only way I know of under windows to change the position of the cursor in a console application is to use the windows function SetConsoleCursorPositon.

http://msdn.microsoft.com/es-es/library/windows/desktop/ms686025(v=vs.85).aspx

希望对你有帮助!

这篇关于gotoxy() 函数在 Visual Studio 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆