Skip to content

robphoenix/cs50

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is cs50 🎓

Installation

Requires asciidoctor in order to build the docs...

sudo apt-get install asciidoctor
# or
gem install asciidoctor

Clone this repo and the cs50 library submodule...

git clone --recursive https://github.com/robphoenix/cs50.git
cd cs50/libcs50
sudo make install

Install check50 to run tests...

sudo -H pip install check50

check50

This 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"

Example

#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);
  }
}

About

🎓 Working through Harvard's CS50 course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors