由3926个源代码

源代码在线查看: test2e.c

软件大小: 12594 K
上传用户: jccg1000146752
关键词: 3926 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* 
				TEST2E.C 
				Turbo C++ 2.0:
				    tcc test2e.c send2e.c do2e.asm have2e.asm   
				Microsoft C 6.0:
				    cl -qc test2e.c send2e.c -MAmx do2e.asm have2e.asm
				    
				SORRY, THE CL COMMAND-LINE IN PRINTED VERSION WAS WRONG: SHOULD BE
				SEND2E.C (AS ABOVE), NOT SEND2E.ASM!
				*/
				
				#include 
				#include 
				#include 
				
				main()
				{
				    char buf[80];
				    for (;;)
				    {
				        fputs("$ ", stdout);
				        gets(buf);
				        // differs from printed version: accept EXIT too!
				        if ((strcmp(buf, "bye") == 0 || strcmp(buf, "BYE") == 0) ||
				            (strcmp(buf, "exit") == 0 || strcmp(buf, "EXIT") == 0))
				            break;
				        Send2E(buf);
				    }
				    puts("Bye");
				}
							

相关资源