In data structures, we need to test our C++ code on a Linux machine before submission. There are two ways: (1) virtual machine and (2) ssh into our school server.
Don't use C++. I wish... Read this and be entertained.
Install Ubuntu in Virtualbox.
Done.
Open up Terminal.
~$ ssh user@thunder.cise.ufl.eduuser@thunder.cise.ufl.edu's password:Last login: Tue Jan 19 17:38:37 2016 from xx.xxx.xx.xxxthunderx:1%
Grab your code using git clone:
thunderx:1% git clone https://github.com/username/project_name
Or wget, whatever floats your boat. Get your code to the server somehow.
thunderx:n% cd project_name
Compile with g++:
thunderx:n% g++ foo.cpp -o foothunderx:n% ./foo
Compile with gcc (if you're nuts):
thunderx:n% gcc -Wall -o foo foo.cpp -lstdc++thunderx:n% ./foo
Copyright © wheelsandbytes 2015-2021. All Rights Reserved