Upgrade to C++
This commit is contained in:
parent
300c72a49e
commit
f770d105b8
4
Makefile
4
Makefile
@ -16,12 +16,12 @@ DPATH = dep
|
|||||||
OPATH = obj
|
OPATH = obj
|
||||||
|
|
||||||
# File type of source file
|
# File type of source file
|
||||||
STYPE = c
|
STYPE = cpp
|
||||||
|
|
||||||
VPATH = $(SPATH) $(IPATH) $(DPATH) $(OPATH)
|
VPATH = $(SPATH) $(IPATH) $(DPATH) $(OPATH)
|
||||||
|
|
||||||
# compiler and compiler flags
|
# compiler and compiler flags
|
||||||
CC = gcc
|
CC = g++
|
||||||
CFLAGS = -I$(IPATH) -pthread -lrt
|
CFLAGS = -I$(IPATH) -pthread -lrt
|
||||||
|
|
||||||
# list of object files
|
# list of object files
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "graph.h"
|
#include "graph.hpp"
|
||||||
|
|
||||||
int graph_reduce(struct adjmatrix *graph) {
|
int graph_reduce(struct adjmatrix *graph) {
|
||||||
// TODO: Implement a function which checks if a process is blocked
|
// TODO: Implement a function which checks if a process is blocked
|
@ -3,9 +3,9 @@
|
|||||||
+-------------+---------+-----------------------+
|
+-------------+---------+-----------------------+
|
||||||
| Created 2022-04-16 |
|
| Created 2022-04-16 |
|
||||||
+-----------------------------------------------+ */
|
+-----------------------------------------------+ */
|
||||||
#include <stdio.h> // printf
|
#include <cstdio> // printf
|
||||||
#include "graph.h" // Graph reduction/Knot detection, struct adjmatrix
|
#include "graph.hpp" // 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 "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) {
|
int main(int argc, char** argv) {
|
@ -1,7 +1,7 @@
|
|||||||
//TODO: Include C file IO header (stdio.h? Whatever it is)
|
//TODO: Include C file IO header (stdio.h? Whatever it is)
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "graph.h" // struct adjmatrix
|
#include "graph.hpp" // struct adjmatrix
|
||||||
#include "read_input.h" // read_input
|
#include "read_input.hpp" // read_input
|
||||||
|
|
||||||
#define MAX_LINE_LEN 1024
|
#define MAX_LINE_LEN 1024
|
||||||
|
|
Loading…
Reference in New Issue
Block a user