⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pause.c

📁 seismic software,very useful
💻 C
字号:
/* Copyright (c) Colorado School of Mines, 1990./* All rights reserved.                       *//* pause - prompt and wait for user signal to continue * * Note: *	Default prompt is "press return key to continue" which is *	evoked by calling pause with no arguments.  The word, *	"continue", is replaced by any arguments handed to pause. *	Thus, the command "pause do plot" will evoke the prompt, *	"press return key to do plot". * * Credits: *	CWP: Shuki * * This program belongs to the Center for Wave Phenomena * Colorado School of Mines*/#include "cwp.h"main(argc, argv)int argc; char **argv;{	char do_what[BUFSIZ];	int i;	if (argc == 1) {		strcpy(do_what, "continue");	} else {		strcpy(do_what, argv[1]);		for (i = 2; i < argc; i++) {			strcat(do_what, " ");			strcat(do_what, argv[i]);		}	}	printf("\npress return key to %s\n", do_what);	getchar();	exit(0);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -