Upgrade to C++
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user