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

📄 dummy2.c

📁 这是个图象压缩解压软件的源码
💻 C
字号:
#include <stdio.h>#include <stdlib.h>#include <jasper.h>#define	FAILED	2int main(int argc, char **argv){	char *refpath;	FILE *reffile;	char *othpath;	FILE *othfile;	int c;	jas_seq2d_t *x;	jas_seq2d_t *y;	refpath = 0;	othpath = 0;	while ((c = getopt(argc, argv, "f:F:")) != EOF) {		switch (c) {		case 'f':			refpath = optarg;			break;		case 'F':			othpath = optarg;			break;		}	}	if (!refpath || !othpath) {		fprintf(stderr, "usage: %s -f reffile -F othfile\n", argv[0]);		exit(FAILED);	}	if (!(reffile = fopen(refpath, "r"))) {		fprintf(stderr, "cannot open %s\n", refpath);		exit(FAILED);	}	if (!(othfile = fopen(othpath, "r"))) {		fprintf(stderr, "cannot open %s\n", othpath);		exit(FAILED);	}	if (!(x = jas_seq2d_input(reffile))) {		fprintf(stderr, "cannot input reference\n");		exit(FAILED);	}	if (!(y = jas_seq2d_input(othfile))) {		fprintf(stderr, "cannot input other\n");		exit(FAILED);	}	if (!jas_matrix_cmp(x, y)) {		fprintf(stderr, "equal\n");		exit(0);	} else {		fprintf(stderr, "not equal\n");		exit(1);	}	exit(FAILED);}

⌨️ 快捷键说明

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