gpt4 book ai didi

c - 如何在 Mac 终端中运行源代码?

转载 作者:行者123 更新时间:2023-11-30 17:04:57 25 4
gpt4 key购买 nike

请帮助我,我是一个不懂电脑的女性,希望将一组(.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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com