This is cs50 🎓
Requires asciidoctor in order to build the docs...
sudo apt-get install asciidoctor
# or
gem install asciidoctorClone this repo and the cs50 library submodule...
git clone --recursive https://github.com/robphoenix/cs50.git
cd cs50/libcs50
sudo make installInstall check50 to run tests...
sudo -H pip install check50This only works locally for me, it asks for submit50 otherwise, which is
installed but it can't find. 🤷♀️
Use make test to run check50
~/cs50/pset1/hello
> make test
check50 -l cs50/2017/fall/hello
:) hello.c exists.
:) hello.c compiles.
:) prints "hello, world\n"#include <cs50.h>
#include <stdio.h>
int main() {
// attempt to read string from stdin
string s = get_string("Enter string: ");
// ensure string was read
if (s != NULL) {
printf("You entered: %s\n", s);
}
}