请帮助我,我是一个不懂电脑的女性,希望将一组(.cng 文件)转换为 jpeg。我在博客上找到了一个源代码,它指示我
Build it, then run it with something like this:
cng2jpg /path/to/images/199x/1990101/*.cng
Here is a link to the source code
有谁知道如何运行源代码来转换文件?
Here is a link to the blog post for reference for what exactly I am doing
最佳答案
首先,将源代码放入名为cng2jpg.c
的文件中。然后打开终端,使用 cd
导航到放置该文件的目录并输入
cc -o cng2jpg cng2jpg.c
这将创建程序cng2jpg
。您可以通过键入来执行它
path/to/cng2jpg input_file.cng
其中path/to/cng2jpg
是上一步中生成cng2jpg
的路径。
关于c - 如何在 Mac 终端中运行源代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35493657/