在for DOS的C语言中,有一个system()函数,其功能是执行命令行程序,在VB中也有shell()函数,在Windows程序设计中WinAPI也为我们提供了类似的函数,它们就是WinExec()和ShellExecute(),下面就来讨论一下这两个函数的用法。 - 下载
批处理文件有时很有用 扩展名是bat(在nt/2000/xp/2003下也可以是cmd)的文件就是批处理文件。 首先批处理文件是一个文本文件,这个文件的每一行都是一条DOS命令(大部分时候就好象我们在DOS提示符下执行的命令行一样),你可以使用DOS下的Edit或者Windows的记事本(notepad)等任何文本文件编辑工具创建和修改批处理文件。 其次,批处理文件是一种简单的程序,可以通过条件语句(if)和流程控制语句(goto)来控制命令运行的流程,在批处理中也可以使用循环语句(for)来循环执行一条命令。当然,批处理文件的编程能力与C语言等编程语句比起来是十分有限的,也是十分不规范的。批处理的程序语句就是一条条的DOS命令(包括内部命令和外部命令),而批处理的能力主要取决于你所使用的命令。 -batch file sometimes useful extension is bat (in the under NT/2000/XP/2003 it is cmd) of the document is batch file. First batch file is a text file, this document each trip are a DOS command (most of the time as if we were in the DOS prompt implementation of fate Like so OK), you can use the Edit DOS or Windows Notepad (notepad) any paper this document editing tools to create and modify batch file. Secondly, the batch file is a simple procedure, through a conditional statement (if), and flow control statements (goto) to control the operation of the order flow also in the batch cycle statements can be used (for) to the implementation of an order cycle. Of course, the batch file with the programming capabilities C programming language compared statement is very limited and also very irregul 下载
一个足以让高级程序员惊讶到哭的小程序此程序为1997年世界程序员大赛冠军作品,大赛要求每个程序员以第一人称来模拟一个虚拟的3D环境场景,限时3天完成,编写程序的语言种类不作任何要求。此作品的作者仅仅用了不到20分钟的时间就编写完成整个程序,然后转身走人,在场所有考官无一不为之震惊,看着这段程序代码都傻眼了。 此程序需要在dos下编译执行,执行方法:下载解压缩后,把3.txt的文件放在c盘的根目录下,然后打开dos窗口在提示符下敲入debug < 3.txt回车即可,看过后保证让你目瞪口呆。 (提醒:在提示符下敲入的debug命令后有空格,小于号后也有空格。在dos下执行的时候提示符必须在c盘根目录下,否则会提示文件路径不对的错误。),本人认为很好,值得一看!-enough for a senior programmer surprised to cry small programs this procedure for the 1997 World Championship programmer works, competition requires each programmer to the first person to simulate a virtual 3D environment settings, and cap three days, programming languages without any type of request. The author of this works only in the less than 20 minutes of preparation time to complete the whole process, and then turned around and left, the presence of all the tests are all shocked, watching this code are dumbfounded. This process requires the dos compiler implementation, methods of implementation : Download decompress, after 3.txt c documents on the disk root directory, then opened the window in the dos prompt input debug lt; 3.txt can enter, after reading to ensure that you dumbfound 下载
C语言编程宝点之XXXX main()主函数 每一C 程序都必须有一main()函数, 可以根据自己的爱好把它放在程序的某 个地方。有些程序员把它放在最前面, 而另一些程序员把它放在最后面, 无论放 在哪个地方, 以下几点说明都是适合的。 1. main() 参数 在Turbo C2.0启动过程中, 传递main()函数三个参数: argc, argv和env。 * argc: 整数, 为传给main()的命令行参数个数。 * argv: 字符串数组。 在DOS 3.X 版本中, argv[0] 为程序运行的全路径名 对DOS 3.0 以下的版本, argv[0]为空串("") 。 argv[1] 为在DOS命令行中执行程序名后的第一个字符串 argv[2] 为执行程序名后的第二个字符串 ... argv[argc]为NULL。 *env: 安符串数组。env[] 的每一个元素都包含ENVVAR=value形式的字符 串。其中ENVVAR为环境变量如PATH或87。value 为ENVVAR的对应值如C:\DOS, C: \TURBOC(对于PATH) 或YES(对于87)。 Turbo C2.0启动时总是把这三个参数传递给main()函数, 可以在用户程序中 说明(或不说明)它们, 如果说明了部分(或全部)参数, 它们就成为main()子程序 的局部变量。- 下载
一 程序的整体结构 1 拨号功能,自动响应功能。(能使用ATDT命令拨号,使用Ctrl-D退出联机状态)。 2 执行调制解调器命令。 3 仿真终端功能:在线方式可进行联机通信,TTY终端仿真,加载驱动程序后可进行VT100终端仿真。 4 文件服务功能: 文本文件的传输,二进制文件的传输,文本文件和二进制文件的写盘功能。文本文件的阅览和简单编辑功能。 5 终端服务功能: UNIX主机上运行的具有菜单驱动的终端服务程序,客户机可通过终端仿真器访问远程机(Remote machine)资源。 6 访问本地机资源:终端状态时可访问客户机上的资源(阅读编辑文件,删除和拷贝文件,执行DOS命令及DOS应用软件)。 二 程序说明 本地机使用ATDT命令拨号,远程机设为自动响应方式,即可进入联机方式, 进行终端通信。 在联机方式下,按PageUp键上载文件,按PageDn键下载文件,Ctrl-O呼出主菜单,退出联机方式使用Ctrl-D键。退出终端仿真器使用EXIT命令。 主程序使用TC编写。终端方式为VT100. -the overall structure of a dial-up function, automatic response function. (ATDT can use dial-up orders, use Ctrl-D on-line from the state). Two implementation modem commands. Three simulation terminal functions : online communications can be conducted online, TTY terminal emulation, after loading drivers can be VT100 terminal emulation. Four file services : text file transfer, the transfer binary files, text files and binary file write-functional. The viewing text files and simple editing features. 5 terminal services : UNIX running on the mainframe with a menu-driven terminal service program, client through terminal emulation for access remote machine (Remote machine) resources. 6 visit to the local machine resources : terminal state visit clients on the resources (read edit documents, de 下载
本实验主要是编制和调试一个自制时钟,在屏幕右上角显示当时的时间:按хх.хх.хх形式显示,并且能正确进位,24小时应清零。同时,在显示时间时,DOS系统能正确处理各种命令,正确执行应用程序。-this experiment is compiled and debug a homemade clock in the upper right screen shows the time : by Xx. Xx. Xx form, and can correct rounding, 24 hours should be reset. At the same time, show time, the DOS system can correctly handle all orders and correctly implement the applications. 下载
vb编写pid控制程序 udp组播vc源代码下载 线程注入源码 em4094程序 ra8820程序 dos串口通讯源代码 flash 调用 java qpsk matlab程序 bcg 界面库 下载 tlv320aic23源程序 vc 图片 串口传输 排队论 仿真 进程通信 网络 父进程 文件分割 行数 支持midp2.0的手机 指纹特征提取matlab udp洪水攻击程序源码 solution equation weblogic server 8.1 unleashed 代码 下载 canny 算子 vc 写日志 matlab 串口中断 i belie intel hex 转换 bin 数字图像处理 教案 opera for wince4.2 matlab 锐化 vb源程序 打印 dna算法的matlab程序 c51 sd卡 mfc编程教程 提醒源代码 vb 窗口隐藏 imsl c pqdif 电机pid控制程序 h.263标准 matrixvb 汉字 arm9200启动 游戏物理学 触摸屏图形软件 lpc2119 i2c jmf 摄像头 视频采集 发送udp数据包 lanmsg 数字图像处理 腐蚀,膨胀 win32 api 串口通信 打印机程序代码 at24c32程序 蓝牙 at指令