源与目标的操作

稍微总结一下一些控制台命令中的输入和输出目标的指定顺序

shell:cp

1
2
[root@www ~]# cp [-adfilprsu] 来源档(source) 目标档(destination)
[root@www ~]# cp [options] source1 source2 source3 .... directory

gcc:-o

1
2
gcc -o hello.exe hello.c
gcc hello.c -o hello.exe

因为-o的意思是制定目标名称,这里hello.exe就是-o的参数

1
gcc -S hello.c 

像这样的,就是先在命令后面跟选项,然后再跟src

如果是

1
gcc main.c

会直接生成一个a.exe

opencv:cvtColor

1
void cvtColor(InputArray src, OutputArray dst, int code, int dstCn = 0);

源与目标的操作
http://iamlihua.github.io/2023/03/22/yuan-yu-mu-biao-de-cao-zuo/
Author
LiHua
Posted on
March 22, 2023
Licensed under