CS 70

Source Code Files

User Files

prog.cpp

#include "board.hpp"

void celebrate();

int main() {
    int x = 42;
    int y = 28;
    x += y;
    boardPrint();
    celebrate();
}

prof.hpp

#ifdef PROF_HPP_INCLUDED
#define PROF_HPP_INCLUDED 1

int numProfs = 2;

void raiseHand();

void runToOffice(int num);

#endif // PROF_HPP_INCLUDED

whiteboard.hpp

#ifndef WHITEBOARD_HPP_INCLUDED
#define WHITEBOARD_HPP_INCLUDED 1

void erase();

void boardPrint(int i);

void changeColor(int color);

#endif // WHITEBOARD_HPP_INCLUDED

System Files

math

#ifndef SYSTEM_MATH_HEADER_INCLUDED
#define SYSTEM_MATH_HEADER_INCLUDED 1

float sqrt(float x);

int exp(int a, int b);

float log2(float x);

#endif // SYSTEM_MATH_HEADER_INCLUDED

(When logged in, completion status appears here.)