Upgrade to C++

This commit is contained in:
John 2022-04-17 18:29:32 -05:00
parent 300c72a49e
commit f770d105b8
6 changed files with 10 additions and 10 deletions

View File

@ -16,12 +16,12 @@ DPATH = dep
OPATH = obj
# File type of source file
STYPE = c
STYPE = cpp
VPATH = $(SPATH) $(IPATH) $(DPATH) $(OPATH)
# compiler and compiler flags
CC = gcc
CC = g++
CFLAGS = -I$(IPATH) -pthread -lrt
# list of object files

View File

@ -1,5 +1,5 @@
#include <stdlib.h>
#include "graph.h"
#include <cstdlib>
#include "graph.hpp"
int graph_reduce(struct adjmatrix *graph) {
// TODO: Implement a function which checks if a process is blocked

View File

@ -3,9 +3,9 @@
+-------------+---------+-----------------------+
| Created 2022-04-16 |
+-----------------------------------------------+ */
#include <stdio.h> // printf
#include "graph.h" // Graph reduction/Knot detection, struct adjmatrix
#include "read_input.h" //TODO: Read input in the associated C file, and provide an interface to that function here
#include <cstdio> // printf
#include "graph.hpp" // Graph reduction/Knot detection, struct adjmatrix
#include "read_input.hpp" //TODO: Read input in the associated C file, and provide an interface to that function here
int main(int argc, char** argv) {

View File

@ -1,7 +1,7 @@
//TODO: Include C file IO header (stdio.h? Whatever it is)
#include <stdio.h>
#include "graph.h" // struct adjmatrix
#include "read_input.h" // read_input
#include <cstdio>
#include "graph.hpp" // struct adjmatrix
#include "read_input.hpp" // read_input
#define MAX_LINE_LEN 1024