The program was written for friend's task. I spent 4 hours on it. From this simple project, I still learned more knowledge.
I ever realized a 'Stack' class in C++. By using template, I created a generic class. But in C, there is no tool to do it. For each type, I have to realize alone.
This is a C-Free project. You can use C-Free IDE to re-compile it for demo. GNU-GCC compiler is accepted more. This program was wrote by standard C, so you can use any C compiler.
This is GCC compiler demo:
gcc -o main.exe main.c list.c kernel.c
In the code, you can add code to support more functionalities.
Download: [ Code(CFREE) ]
42 引用 • 111 回帖 • 499 关注
C 语言是一门通用计算机编程语言，应用广泛。C 语言的设计目标是提供一种能以简易的方式编译、处理低级存储器、产生少量的机器码以及不需要任何运行环境支持便能运行的编程语言。