简体   繁体   English

使用turbo c ++制作GUI?

[英]Making a GUI with turbo c++?

Note: I am new to programming and extremely new to c++.I have seen scouring google for a long time and only things i can come up with are external headers and very complicated code.. I want to do this at school, and there we are provided with Turbo C++. 注意:我是编程的新手,也是c ++的新手。我已经看过谷歌搜索很长一段时间了,只有我能想到的东西是外部标题和非常复杂的代码..我想在学校这样做,那里我们提供Turbo C ++。 We can't bring any external headers in there, gotta work with whatever i've got. 我们不能在那里带任何外部标题,可以使用我所拥有的任何东西。

I want to create a GUI. 我想创建一个GUI。 I want to create something really good for our annual project and i want to create a GUI. 我想为我们的年度项目创建一些非常好的东西,我想创建一个GUI。

I would like to make as detailed a GUI as possible, but would be satisfied if i can create as much as several text options and clicking on em triggers respective functions (I am sorry if thats not how GUIs work, i never worked with one). 我想尽可能详细地制作一个GUI,但是如果我可以创建多个文本选项并点击em触发相应的功能(我很抱歉,如果那不是GUI如何工作,我很抱歉,我从未使用过) 。

Again help is highly appreciated, i understand most discussions on Stack Overflow are much more complicated than this, i appreciate you taking the time to read and (hopefully) answer a layman question. 再次非常感谢帮助,我理解大多数关于Stack Overflow的讨论要比这复杂得多,我感谢您花时间阅读并(希望)回答一个外行问题。

I'll suggest a non-technical solution because this is actually largely not a technical problem. 我会建议一个非技术性的解决方案,因为这实际上并不是一个技术问题。 Much of your problem is that you have to use Turbo C++. 你的大部分问题是你必须使用Turbo C ++。 Unfortunately, a number of poorer countries have, for some reason, stuck with extremely outdates software in education. 不幸的是,由于某种原因,一些较贫穷的国家在教育中坚持使用极其过时的软件。 I know because I'm originally from one of the "Turbo countries", and I know that the main technical university there still uses Turbo for undergrad courses. 我知道因为我来自“Turbo国家”之一,我知道那里的主要技术大学仍然使用Turbo进行本科课程。

This is bad . 这很糟糕 Large projects in school are there to teach you to work on software. 学校里的大型项目可以教你学习软件。 A regular programming course should teach you to think like a programmer, and it doesn't matter what language you use. 常规编程课程应该教你像程序员一样思考,并且使用哪种语言并不重要。 But term projects are supposed to be more practical. 但是,学期项目应该更加实用。 The problem is, with Turbo C++, not only will you fail to learn enough, you will learn things that are bad. 问题是,使用Turbo C ++,你不仅没有学到足够的知识,还会学到很糟糕的东西。 You'd be writing a 16-bit program that takes effort to even run on modern hardware, while not being able to use the C++ language properly. 您将编写一个16位程序,该程序甚至可以在现代硬件上运行,而无法正确使用C ++语言。 The compiler is older than the first ISO C++ standard! 编译器比第一个ISO C ++标准旧!

If you want to make an impressive project that will stand out in your studies, especially if you later want to continue at a foreign university, I urge you to talk to your professor, explain the situation, and ask if you can use something else for the project. 如果你想做一个令人印象深刻的项目,这将在你的学习中脱颖而出,特别是如果你后来想继续留在外国大学,我建议你和你的教授谈谈,解释情况,并询问你是否可以使用别的东西该项目。 A modern compiler with some framework like Qt. 一个像Qt这样的框架的现代编译器。 If you can reach an agreement to use something else, it will benefit you. 如果您可以达成协议使用其他东西,它将使您受益。

Otherwise, if you have no choice, get Turbo Vision. 否则,如果您别无选择,请购买Turbo Vision。 There are versions of BC++ packaged with it, or you can find it elsewhere, Turbo Vision is a fairly comprehensive interface framework for the dinosaur era. 有包装的BC ++版本,或者你可以在其他地方找到它,Turbo Vision是恐龙时代相当全面的界面框架。

First off, the toolchain and operating system you are using is outdated and incapable. 首先,您使用的工具链和操作系统已过时且无法使用。 And the language support Turbo C++ offers can hardly be called C++ at all ; 而语言支持的Turbo C ++报价很难被称为C ++ 可言 ; the code you will write will not be C++ code. 你要编写的代码不是 C ++代码。 At best, it will be C with classes code. 充其量,它将是带有类代码的C.

All that aside, there was a fairly-capable Text-based User Interface (TUI) library available with Turbo C++ (as well as Borland's Pascal-based toolchains,) called Turbo Vision . 除此之外,还有一个相当强大的基于文本的用户界面(TUI)库,可以使用Turbo C ++(以及Borland的基于Pascal的工具链),称为Turbo Vision You might be able to use that. 你也许可以使用它。 It generates UIs quite similar to the Turbo C++ IDE itself. 它生成的UI与Turbo C ++ IDE本身非常相似。

But IIRC, it was not trivial to use, so I advise you to find a book or reference or comprehensive tutorial of some kind. 但是IIRC,使用它并不简单,所以我建议你找一本书或参考或某种综合教程。 However, since your environment precludes anything that is not available already with TC, I see no option for you other than using Turbo Vision or writing your own, which doesn't sound like something you can do or want to do. 但是,由于您的环境排除了TC已无法使用的任何内容,除了使用Turbo Vision或编写自己的Turbo Vision之外,我看不到任何选项,这听起来不像您可以做或想做的事情。

Check this link, you have tutorial and source code for borland c++ for windows API programming http://www.winprog.org/tutorial/ 查看此链接,您有用于Windows API编程的borland c ++的教程和源代码http://www.winprog.org/tutorial/

http://www.mediafire.com/download/bid3v46d5gwyd3d/Code%26ExeFile.zip http://www.mediafire.com/download/bid3v46d5gwyd3d/Code%26ExeFile.zip

如果你非常了解c,那么尝试使用java.its的netbeans非常容易学习,你可以用它来制作gui。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM