gpt4 book ai didi

c - 应用程序接受 : *argument but not of the form argument* or *argument* 形式的命令行参数

转载 作者:太空宇宙 更新时间:2023-11-04 02:12:02 31 4
gpt4 key购买 nike

例如,如果我的程序名称是 test.c

然后对于以下运行命令,argc = 2 而不是 4

$test abc pqr* *xyz*

最佳答案

尝试运行:

$ echo abc pqr* *xyz*

你就会明白为什么你没有得到你期望的 argc

关于c - 应用程序接受 : *argument but not of the form argument* or *argument* 形式的命令行参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12873825/

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