Home  >  Article  >  Backend Development  >  How to implement interface in C language

How to implement interface in C language

hzc
hzcOriginal
2020-06-05 13:26:2611634browse

How to implement interface in C language

How to implement the interface in C language:

C language is a general computer programming language and is widely used. The design goal of the C language is to provide a programming language that can be easily compiled, handle low-level memory, generate a small amount of machine code, and can run without any runtime environment support.

Although C language provides many low-level processing functions, it still maintains good cross-platform characteristics. C language programs written in a standard specification can be compiled on many computer platforms, and even include some embedded processors (single-chip microcomputer or MCU) and supercomputers and other operating platforms.

The interface is just a window that interacts with the user. For example, in MFC, the way to transfer data between the interface and the program is through the UpDate() function. UpDate(FALSE); is to pass variable data to the interface. , UpDate(TRUE) is to pass the interface data to the variable. Of course, the premise is that they need to be related. Having said that, the poster probably understands the usefulness of the interface.

MFC is developed in C. There are still big differences between C and C. It will be very difficult to get started directly. I suggest that the poster read C's book first. Understand, what is a class, what is a container, what is overloading, what is construction, what is destruction, and what is object-oriented. This cannot be said in one or two sentences.

1: If you want to play with the interface, just use QT to write it, or use other simple languages ​​​​(VB, or the domestic Easy Language) first. PS: Easy Language is essentially a package of C, but many functions are packaged. It is much simpler to use than MFC.).

Two: If you want to go deeper into software development, you can choose to learn C, and then learn MFC

Three: C language is very powerful and cannot be surpassed by other easy programming languages ​​(personal opinion). You said earlier that you learned C language very well, but I think you started flirting a little too early. (You will understand this point of view when your level rises one or two levels from a rookie)

Four: Do more projects.

Recommended tutorial: "c#"

The above is the detailed content of How to implement interface in C language. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn