The following code sample shows a C++ program written using the XMS API.
以下代码示例显示了一个使用XMSAPI编写的 C++程序。
Listing 5. C code for the sum_list program.
清单5 . sum_list程序的c代码。
Now we just need a program to convert our macro into standard C. For this simple example, Perl is used because it can evaluate user code in a string, and its syntax is largely C-like.
现在我们只需要一个程序将这个宏转换成标准的C 语言就可以了。对于这个简单的例子来说,我们将使用Perl 来实现这个程序,因为它可以对字符串中的用户代码进行评测,其语法也与 C 语言非常类似。
Using an extension wrapper like SWIG (see Resources), you can create a C extension that executes the most time consuming elements of your program as C code.
使用像SWIG 这样的扩展封装器(请参阅参考资料),可以创建C 扩展,它将程序中最耗时元素作为 C 代码执行。
We then examined a specific instance of table-building and went through the motions of writing a code-generating program to build static tables in c.
然后又介绍了一个具体的构建表的示例,并介绍了用c编写这样一个代码生成程序来构建静态表的详细过程。
I just indented code, pretty much as I would have done in a C program anyway, and it worked.
我只是用了缩进代码,就象我一直在C程序里所做的那样,这样足矣。
The software part, which is also as firmware, mainly includes real time operating system (RTOS), MAC application program and C code for interface modules.
软件设计主要是嵌入式系统的固件设计,包括实时操作系统(RTOS),实现MAC功能的程序,接口硬件C程序三部分。
The character die of Chinese character can be get by a kind of making code software. C Language is used to write program to achieve OLED's display.
通过字模提取软件提取所需显示汉字的字模数据,采用C语言编程实现OLED的显示。
The character die of Chinese character can be get by a kind of making code software. C Language is used to write program to achieve OLED's display.
通过字模提取软件提取所需显示汉字的字模数据,采用C语言编程实现OLED的显示。
应用推荐