Upgrade to C++
This commit is contained in:
parent
300c72a49e
commit
f770d105b8
4
Makefile
4
Makefile
@ -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
|
||||
|
@ -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
|
@ -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) {
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user