Code questions pertaining to Harvard's self-study introductory. It is STRONGLY RECOMMENDED to additionally tag with C or Python. Also consider using the spin-off https://cs50.stackexchange.com/
Note there is a spin-off site at https://cs50.stackexchange.com/. Consider joining the community and directing your questions there.
The CS50 (a.k.a. CSCI S-50) courses are computer science courses from Harvard University as part of its edX program.
There is a C library available at CS50 Library which provides support functions for the course.
There is also a Python library at CS50 Library which provides support functions for the course.
The cs50 tag should be used primarily for questions also tagged c or python(though the course does use some other languages too, and if there is a need, the extra languages would be valid too).
This tag should be used for questions which use the "cs50.h"
header, python-cs50
or -lcs50
library. Another symptom that it is appropriate is the use of the type string
(which is defined with typedef char *string;
in the cs50.h
header) or functions such as get_char()
, get_double()
, get_float()
, get_string()
, get_int()
, get_long_long()
and SQL()
.
The term 'pset' with a number (e.g. PSET5 — for Problem Set 5), with varying capitalizations is also often an indication that cs50 could be appropriate.
- As an alternative to edx, there is a standalone website (called CS50x) where all the course materials and problem sets can be found.
- There is CS50 Stack Exchange site dedicated to the course.
- You can run CS50 programs in Visual Studio Code for CS50 (Codespaces)
- The previous CS50 IDE has been deprecated. Use the Codespaces link above instead. For reference, here is the link to the previous CS50 IDE
- CS50 has a "CS50 Sandbox" to run in a test environment. The CS50 Sandbox will be decommissioned on July 1, 2023. Sandbox URL: http://sandbox.cs50.io/ A suggested alternative after that date is Replit