0

I am a beginner at programming, so this might be a dumb question, but here it is...

I've been going through books, learning languages such as C and C++, and I have a basic understanding of the code. Yet, is this type of code used in actual programs? For example, I open a program on my computer, and there is a nice looking user interface on it. When I code programs at home, my user interface is the command line. But when I go to code a program with a GUI, the code I learn in books doesn't even apply to the GUI code.

So I guess I'm wondering - How does the code and things you learn in books apply to actual programs with a user interface? And is the code used for console applications even used anymore?

Any guidance or help would be appreciated!

Thanks Ian Vaughn

4

1 回答 1

0

是的,是的。

GUI 有时用 C++ 编程(C 很少见),但它也用于控制台程序。实际上,一种特殊类型的 GUI 通常是用 C++ 完成的,那就是游戏。控制台程序的一个常见示例是转换器程序,它接收一个文件并创建另一个文件。它的 UI 可以./tool < InFile > OutFile

于 2013-06-28T00:00:53.327 回答