223 CS162 刷课指南 -- 第一课

最近在跟ucb的cs162,上来配置vagrant就挺头大的
https://cs162.eecs.berkeley.edu/static/hw/hw0.pdf

vagrant 配置 – ubuntu

我家里使用ubuntu 16.04,公司电脑是win10 ,先说ubuntu

1.下载vagrant 和 virtualBox

virtualbox
vagrantup

sudo dpkg -i xxxxxx #替换为文件名

2. up vagrant image

vagrant up会等很久

$ mkdir cs162-vm
$ cd cs162-vm
$ vagrant init cs162/spring2016 // 这里请替换为最新的学期
$ vagrant up
$ vagrant ssh

3.把代码同步到本地

安装smbclientcifs-utils

$ sudo apt-get install smbclient

$ sudo apt-get install cifs-utils

$ sudo mount -t cifs -o username=vagrant,password=vagrant //192.168.162.162/vagrant/code /home/cs162-vm/code

vagrant配置 – win10

留坑

第一题

Your first assignment is going to be to modify wc.c,so that it implements word count according to the specification of “man wc”,except that it does not need to support any flags and only needs to support a single input file,(or STDIN if none is specified).
Beware that wc in OS X behaves differently from wc in Ubuntu.

修改wc.c,根据“man wc”里面的要求实现字统计,不需要接受参数,只需要接受文件名(如果没有参数则默认取STDIN)

相关文章

文章浏览阅读2.3k次,点赞4次,收藏22次。最近安装了CARLA预...
文章浏览阅读6.3k次,点赞5次,收藏15次。在清华镜像中下载U...
文章浏览阅读5k次。linux环境, python3.7.问题描述: 安装...
文章浏览阅读4.2k次,点赞4次,收藏17次。要安装这个 standa...
文章浏览阅读894次,点赞51次,收藏31次。在安卓使用vscode主...