在Linux命令行下编写C语言并上传到GitHub
来源:互联网 发布:手机淘宝支付宝登陆 编辑:程序博客网 时间:2024/06/18 14:52
1.进入GitHub版本库
首先打开 Linux命令行环境,输入如下代码进入GitHub版本库
git clone https://github.com/username/Repository cd Repository
https://github.com/username/Repository
为你的版本库链接
示例:
2.用vim编辑器编写C语言程序
vi hello.c
vim编辑器编写程序:
编译运行:
gcc -o hello hello.c./hello
运行结果如图:
3.保存到GitHub
git add hello.cgit commit -m "Hello World"
4.课程实验源代码
shiyanlou:~/ $ cd Codeshiyanlou:Code/ $ git clone https://github.com/moyin1004/software-cshiyanlou:Code/ $ cd software-c/lab1shiyanlou:lab1/ (master) $ gcc -o hello hello.c shiyanlou:lab1/ (master*) $ ./helloshiyanlou:lab1/ (master*) $ vi hello.c
【网易云课堂陌音1314 + 《软件工程(C编码实践篇)》MOOC课程作业http://mooc.study.163.com/course/USTC-1000002006 】
阅读全文
1 0
- 在Linux命令行下编写C语言并上传到GitHub
- 在Linux下简单编写、编译并执行一个C语言程序
- 如何在github上传c语言代码
- Ubuntu 16.04 下使用git 命令行上传到github
- 怎样在linux下编写C程序并编译执行
- linux下上传代码到github
- 在linux命令行 下学习编写java
- 第一次使用vim在Linux下编写C语言程序
- 使用vim在Linux下编写C语言程序
- 使用vim在Linux下编写C语言程序
- 使用vim在linux下编写C语言代码
- 在linux下用C语言编写发牌程序
- 在VS2008环境下编写C语言DLL,并在C++和C#项目下调用
- 在Ubuntu上创建Git仓库并上传到GitHub
- Linux下C语言编写基于命令行的FTP客户端与服务端
- 如何在 Linux 下编译并运行 C语言
- 在linux下C语言源文件到可执行文件的过程
- 在LINUX下编写程序并运行
- Java -- 集合Set
- 编译hadoop-eclipse插件并集成到eclipse中去
- MacOS 开发
- Druid数据连接池源码分析
- 【css3】js条件下多次触发同一个css3动画的解决方案
- 在Linux命令行下编写C语言并上传到GitHub
- NOIP2015信息传递解题报告
- int *ptr=(int *)(&a+1)
- 顺序表和链表的优缺点及使用场景
- 【卷积神经网络】tiny-dnn网络参数
- Java
- [BZOJ]1977 次小生成树 树上倍增
- 上传图片前预览
- 系统吞吐量、TPS(QPS)、用户并发量、性能测试概念和公式