小编Mas*_*eri的帖子

管道回声到gcc?

要从printf("Hello!");终端呼叫C我使用

echo '#include<stdio.h>
void main()
{
printf("Hello!");
}' > foo.c
Run Code Online (Sandbox Code Playgroud)

然后调用gcc foo.c以输出.不幸的是,流水线

echo '#include<stdio.h>
void main()
{
printf("Hello!");
}' | gcc 
Run Code Online (Sandbox Code Playgroud)

没有抱怨没有输入文件.最后,我想有一个剧本,我可以编译C command从终端./script [command].任何建议将不胜感激.

c gcc compilation pipe

5
推荐指数
1
解决办法
736
查看次数

标签和提交消息之间的区别

我了解人们总是需要一条消息来提交更改,但是何时以及为什么还需要标记一次提交?假设我进行了一些更改并使用

git add -A
git commit -m "add feature 1"
Run Code Online (Sandbox Code Playgroud)

现在

git tag -a -m "includes feature 1" v0.1
Run Code Online (Sandbox Code Playgroud)

问题是,何时才有意义。

git git-commit git-tag

5
推荐指数
2
解决办法
1167
查看次数

标签 统计

c ×1

compilation ×1

gcc ×1

git ×1

git-commit ×1

git-tag ×1

pipe ×1