将用逗号分隔的多个变量读入结构

时间:2019-05-19 21:04:38

标签: c

我正在尝试将简单的文本和数字读入用逗号分隔的结构中。我读了How to read numbers separated by space using scanf并编写了这段代码,但是所有变量都被写入char名称而不是单独的变量。

bash -c "wmctrl -xa <wm_class> || <wm_class>

我不知道为什么所有内容都保存为一个变量

0 个答案:

没有答案